471,596 Members | 994 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,596 software developers and data experts.

Can't interpret php code when file saved with unicode.

Hi ,

I use apache server , php and mysql to
implement a multi-language web admin
system, in order to display the required
language, the file needed to save with
unicode instead of ANSI. But the server
cant interpret the php code properly.
What should i do?

Regards,

Ricky
Jul 17 '05 #1
2 2069
lig
i you are saving the multi-byte characters in the HTML -As far as I
know you have only 1 option - using the HTML code for the individual
letters. This of course is not ideal when dealing witrh large blocks
of text.

I would suggest you look into the numerous methods of
internationalization. Just off the top of my head (keeping php in
mind) I would suggest you look into gettext, IntSmarty (this is what I
chose to use), and there are 5 packages in PEAR that you may want to
check out
(http://pear.php.net/packages.php?cat...tionalization).
Do your research and find out which one will best suit your needs.

Jul 17 '05 #2
<ka*******@hotmail.com> wrote in message
news:d8**************************@posting.google.c om...
Hi ,

I use apache server , php and mysql to
implement a multi-language web admin
system, in order to display the required
language, the file needed to save with
unicode instead of ANSI. But the server
cant interpret the php code properly.
What should i do?

Regards,

Ricky


Don't save as your files as UCS-2 (aka UTF-16) . Save them as UTF-8 instead.
PHP will parse them then.
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

14 posts views Thread by George Hester | last post: by
10 posts views Thread by Bobby T | last post: by
135 posts views Thread by Xah Lee | last post: by
1 post views Thread by markww | last post: by
1 post views Thread by xoinki | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.