Re: multi languages pages - string 2 hexa ????

From: Date: Thu, 11 Sep 2003 10:08:57 +0000
Subject: Re: multi languages pages - string 2 hexa ????
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-162263@lists.php.net to get a copy of this message
Olivier Wauters wrote:
Hi, Thank you for your reply. The thing is the the content is from a mysql database, and input with a web based application. And the website is totally dynamic. So I try to find the easier solution. So you need to recode the content of mysql tables, you would need to do it anyways even with the hexa codes. recode extension will help you.
Then simply put <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"> to all head sections of your html pages. Then even the web based input will work. The only problem I see is that mysql does not support unicode, so some features will be missing.
Doeas Unicode is UTF8? Yes
Thank you. Olivier. ----- Original Message ----- From: "Marek Kilimajer" <kilimajer@webglobe.sk> To: "olivier" <olivier@tentwelve.com> Cc: <php-general@lists.php.net> Sent: Thursday, September 11, 2003 11:33 AM Subject: Re: [PHP] multi languages pages - string 2 hexa ???? Use unicode and a unicode editor. olivier wrote:
Hi, I have to create a multi-language web site. The interface language and the content language are different. The interface languages are frensh, english, spannish or portugese, but
the
content can be english or russian or greek... My idea is to write the string in hexa codes. So is there a simple method in PHP to translater something like this "Ïðàâèëà" to something like this &#1055;&#1088;&#1072;&#1074;&#1080;&#1083;&#1072; ? Is it the right solution? Is there other solution? Does anybody have exerience about this? Thanks for your help. Cheers. Olivier.


« previous php.general (#162263) next »