Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    May 2004
    Location
    sweden
    Posts
    236
    Thanks
    0
    Thanked 0 Times in 0 Posts

    php.net and internationalization

    Does anyone know of a single point of entry to php.nets site that covers internationalization? I have found different items in the manual but nothing with just i18n as a topic or title.
    Carl McDade
    _____________
    Hiveminds Magazine
    for web publisher and community builders
    eRuby Tutorials

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    frankfurt, german banana republic
    Posts
    1,848
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Sadly enough, this is a neglected topic both in the documentation and the engine itself. It would be nice if PHP could internally handle Unicode correctly, because that would make internationalization issues much easier to deal with.

    Anyway, these sections might be helpful to you:

    Gettext - http://www.php.net/manual/en/ref.gettext.php
    Multibyte Strings - http://www.php.net/manual/en/ref.mbstring.php
    setlocale - http://www.php.net/setlocale
    utf8_encode - http://www.php.net/utf8_encode

    Most people roll their own I18n API though, because native support off PHP to often depends on certain extensions installed, which prevents easy distribution. The PEAR department has some solutions to offer, though I have no experience with them.

    http://pear.php.net/packages.php?cat...ationalization
    De gustibus non est disputandum.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •