Re: Convert Characters

From: Date: Mon, 29 Mar 2004 17:06:12 +0000
Subject: Re: Convert Characters
References: 1 2  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969359824@lists.php.net to get a copy of this message
could someone please answer my first part of the question.. "Is there a way to convert any character to it's HTML &#xxx; equivalent in PHP?" I used to code in asp and I used "server.HtmlEncode" My problem is that I dont know what I have to use with php Thanks Again Reuben "Adam Maccabee Trachtenberg" <adam@trachtenberg.com> wrote in message news:Pine.LNX.4.58.0403291150370.19638@miranda.org... > On Mon, 29 Mar 2004, Reuben Sant wrote: > > > I need to do this because I need to store Unicode Characters in a MySQL > > database.. This is because Unicode chars example &#365; use 2 bytes and when > > I try to store it, it appears as 2 separate nonsense characters in the db. > > > > Is there any different solution to my prob? Maybe I dont need to convert the > > chars.. Is there a way to instruct a MySQL database to accept unice > > characters? > > This isn't the right list for this, but you should read: > > > http://www.mysql.com/documentation/mysql/bychapter/manual_Charset.html > > And follow up on php-general if you have more questions. > > -adam > > -- > adam@trachtenberg.com > author of o'reilly's php cookbook > avoid the holiday rush, buy your copy today!

« previous php.doc (#969359824) next »