You are here: Character Sets in PHP + MySQL « PHP Programming Language « IT news, forums, messages
Character Sets in PHP + MySQL

Posted by Kevin Laurence on 09/26/66 11:33

Can anyone advise me on the use of UTF-8 in PHP and MySQL? What is the best
approach?

I would prefer to store HTML extended characters in the database as UTF-8,
but I can only get the HTML to display properly if I store character
entities (eg. ř).

Every table in my database is set to UTF-8. The web page generated by PHP is
declared as UTF-8. The HTTP response header from the server is UTF-8. The
character set of the database connection is defined as UTF-8.

I've tried using the PHP function "htmlentities" to convert the characters,
but it doesn't work for the complete UTF-8 character set.

What am I missing? Do I need to do something with the Multibyte string
functions?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация