Re: [PHP-I18N] Encoding detection
Atanas Vassilev: > I need a way to detect default browser encoding so that i can set a > variable for language and present the whole site in different > languages based on encoding. I know encoding does not determine > language but I only have to switch between german and bulgarian so in > my case encoding will do the trick... of course if I knew a way to get > the encoding of the user's browser... You have the information you need in $HTTP_ACCEPT_CHARSET. -- Gustav Foseid, Initio IT-løsninger AS [EMAIL PROTECTED] -- PHP Internationalization Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-I18N] Encoding detection
Atanas Vassilev: > I formed my include like this: > include "lang_".$HTTP_ACCEPT_LANGUAGE.".INC"; This will not work properly. Firts of all, youmight get a request from someone having another language set in their preferences. You can also have more than one language set, in my requests HTTP_ACCEPT_LANGUAGE is set to "no, en, sv". -- Gustav Foseid, Initio IT-løsninger AS [EMAIL PROTECTED] -- PHP Internationalization Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]