RE: utf-8 in mysql but not outputting as utf-8 on web

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

Also the first query that is executed to MySQL server has to be:

SET CHARACTER SET utf8

This will set the character set for current connection to UTF-8 (default is
latin-1).

HTH

Have a great day,

Denis S Gerasimov 
Web Developer
Team Force LLC

Web:   www.team-force.org
RU & Int'l:   +7 8362-468693
email:    denis.gerasimov@xxxxxxxxxxxxxx

> -----Original Message-----
> From: Curt Zirzow [mailto:czirzow@xxxxxxxxx]
> Sent: Friday, December 23, 2005 9:02 AM
> To: php-general@xxxxxxxxxxxxx
> Subject: Re:  utf-8 in mysql but not outputting as utf-8 on web
> 
> >
> > On a web page, I set the charset to utf-8 via:
> > header("Content-type: text/html; encoding: UTF-8");
> > as the top-line
> 
> you want:
> 
>   Content-Type: text/html; charset=UTF-8
> 
> 
> Also, take a look at the php.ini setting:
> 
>   http://php.net/manual/en/ini.core.php#ini.default-charset
> 
> 
> I would set that to UTF-8 and not worry about the header calls;
> besides all pages should have some sort charset encoding set.
> 
> Curt.
> --
> cat .signature: No such file or directory
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux