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" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> 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
>
> -- 
> [EMAIL PROTECTED]
> author of o'reilly's php cookbook
> avoid the holiday rush, buy your copy today!

Reply via email to