You are here: Re: [PHP] inserting utf8 from PHP to MySQL makes text unreadable [SOLVED] « PHP « IT news, forums, messages
Re: [PHP] inserting utf8 from PHP to MySQL makes text unreadable [SOLVED]

Posted by Dave on 02/01/05 19:31

Marek,
Thank you for your advice. I've wrapped my variable like so:
htmlspecialchars( $HTTP_POST_VARS['introJ'], ENT_COMPAT, "UTF-8")
and that seems to have made the variables store and display okay. I
actually have no idea what the "ENT_COMPAT" bit is doing, but
experimentation has taught me that it won't fly without it.
Thanks for taking the time to help!

--
Dave Gutteridge
dave@tokyocomedy.com

 

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

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