|  | Posted by NC on 07/20/07 23:45 
On Jul 18, 10:36 am, "J.O. Aho" <u...@example.net> wrote:> laredotorn...@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">
 
 Or send a header:
 
 header('Content-Type: text/html; charset=iso-8859-1');
 
 Cheers,
 NC
  Navigation: [Reply to this message] |