Posted by J.O. Aho on 07/18/07 17:36
laredotornado@zipmail.com wrote:
> I'm using php 4.4.4 with MySQL 5.0. A VARCHAR column in a db table
> contains the character "Ø" (o with a front slash through it).
> However, when I try and print it out to my browser, all I see is the
> character "?" (diamond with a question mark in it). Is there a PHP
> setting that will allow me to print out a broader character set?
Check what character setup the database uses and then you add a meta tag to
your html page that tells the web browser to select the right character setup.
Assume your table uses iso-8859-1, then add the following meta tag
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
--
//Aho
[Back to original message]
|