Re: [PHP] Re: languages and PHP
- From: per@xxxxxxxxxxxx (Per Jessen)
- Date: Thu, 27 Sep 2007 20:44:08 +0200
Colin Guthrie wrote:
Per Jessen wrote:
I work almost exclusively in UTF-8 (language irrelevant), but I've
never had to do any of the above. The mb_convert_encoding()
fromUTF-8 to UTF-8 doesn't seem to make much sense?
I agree. Provided you HTML is dished out with UTF-8 in the doctype
definiton etc. then all forms are automatically sent in UTF-8....
Quite so.
Also for multilingual content (labels etc.) in PHP have a look at the
gettext extension. This will let you code in your default language
with a minimal wrapper and translate to other languages with catalog
files.
I haven't done much with gettext yet - I use apache language content
negotiation, separate source-files per language, and try hard to keep
my PHP code language neutral.
/Per Jessen, Zürich
.
- References:
- languages and PHP
- From: Angelo Zanetti
- Re: [PHP] languages and PHP
- From: David Christopher Zentgraf
- Re: [PHP] languages and PHP
- From: Per Jessen
- Re: languages and PHP
- From: Colin Guthrie
- languages and PHP
- Prev by Date: Re: [PHP] Re: languages and PHP
- Next by Date: Re: [PHP] Re: languages and PHP
- Previous by thread: Re: [PHP] Re: languages and PHP
- Next by thread: Re: [PHP] simple product selection guide
- Index(es):
Relevant Pages
|