Re: [PHP] languages and PHP



Paul Scott wrote:


On Thu, 2007-09-27 at 12:15 +0200, Angelo Zanetti wrote:
What are the implications of having a site that has many different
languages, including latin and non latin characters?

Keep everything as universal (UTF-8) as possible, and make sure that
you code for right-to-left languages as well.


Also be careful about how you use setlocale(). When/if you change it,
make sure that your mysql connections has the same locale as your PHP
code. Also don't make assumptions about the locale setting, but always
set it explicitly.
Something similar goes for timezone I believe. setlocale() caused me
all kinds of grief 2-3 years ago.



/Per Jessen, Zürich
.



Relevant Pages

  • Re: [PHP] languages and PHP
    ... including latin and non latin characters? ... you code for right-to-left languages as well. ... make sure that your mysql connections has the same locale as your PHP ...
    (php.general)
  • Re: [PHP] languages and PHP
    ... Paul Scott wrote: ... including latin and non latin characters? ... code for right-to-left languages as well. ... do you just align right or do you have to do some other wonderful stuff? ...
    (php.general)
  • Re: [PHP] languages and PHP
    ... including latin and non latin characters? ... Keep everything as universal (UTF-8) as possible, ... code for right-to-left languages as well. ... All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm ...
    (php.general)