Re: [PHP] languages and PHP





Per Jessen wrote:
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.

Thanks will keep this in mind. Very much appreciated.




/Per Jessen, Zürich


--
------------------------------------------------------------------------
Angelo Zanetti
Systems developer
------------------------------------------------------------------------

*Telephone:* +27 (021) 552 9799
*Mobile:* +27 (0) 72 441 3355
*Fax:* +27 (0) 86 681 5885
*
Web:* http://www.zlogic.co.za
*E-Mail:* angelo@xxxxxxxxxxxx <mailto:angelo@xxxxxxxxxxxx>
.



Relevant Pages

  • Re: i18ned Character Set in DBMS and tables
    ... the fact that there is no Locale ... two-letter codes as defined by ISO-639. ... German people and we have understood each other 'einwandfrei'. ... > languages of this country: German, French and Italian, plus English), and ...
    (comp.lang.java.programmer)
  • Re: UCS Identifiers and compilers
    ... Some of their languages have both case ... context dependent glyphs for the same character, ... changed our locale between calls. ...
    (comp.compilers)
  • Re: Locale independence and grammatical structure
    ... in languages with inflections it's quite ... > Making a huge dictionary of all words in all possible contexts may ... So the program is not Locale ... of grammer or language. ...
    (comp.programming)
  • locale (was: Accented characters in less and vim)
    ... Most people would use both languages interchangably; ... hence the correct locale should not be taken from ... presumable has its very own character encoding). ... :> Shouldn't $LANG always include an encoding defintion? ...
    (uk.comp.os.linux)
  • Re: lsort -dictionary
    ... >> certainly not one that spans languages. ... >It's been well known for a long time that string collation is ... writing system to writing system, and that some other principles vary ... variation is not a function of locale. ...
    (comp.lang.tcl)