You are here: Re: Special Characters into database « PHP Programming Language « IT news, forums, messages
Re: Special Characters into database

Posted by Michael Fesser on 09/27/00 12:01

..oO(Willem Bogaerts)

>In effect, there are really two things in MySQL that "have" encodings:

There are at least four: database, table, column, connection. Of course
you can also define a default ecoding for your tables when you create
then. Usually I use ISO-8859-1 as the table default and UTF-8 for the
columns that hold TEXT or (VAR)CHARs.

>On the webserver side, you should do the same. In the htmlentities()
>function, you can pass an encoding.

Most if not all used browsers today support UTF-8, so you don't need
htmlentities() anymore. htmlspecialchars() is more than enough to take
care of the few chars that have a special meaning in HTML, all others
can be written and delivered as-is.

Micha

 

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

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