By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,805 Members | 1,202 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,805 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
<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.