Echilon Posted February 28, 2007 Share Posted February 28, 2007 I have a PHP script that uses MySQL to store entries. At the moment, the whole script is in English, but I've just sorted out a translation into Simplified Chinese. I know Chinese uses unicode, but I have absolutely no experience with working with it. At present, I'm using: <meta http-equiv="Content-Type" content="text/html; charset=windows-1252" /> in the head of the outputted HTML, could I just change this to <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> and have the English and Chinese versions work alongside each other, or would I need to change the output depending on the language selected? I'm also not sure about PHP and Chinese. All the language strings are defined as constants using define("CONSTANTNAME","Some text in English"); so would I be able to just copy and paste the Chinese translations in place of the English text, or would I need to do something extra? I'm using Verdana as the font face at the minute, but does it even support Chinese? I've noticed when I open the file the translator sent back with notepad, it displays fine, but when I open it with Context (http://context.cx), it displays as jibberish. I'm really looking for some insight from someone who knows a bit more about this. Thanks Link to comment https://forums.phpfreaks.com/topic/40504-unicode-in-phphtml/ Share on other sites More sharing options...
magnetica Posted February 28, 2007 Share Posted February 28, 2007 Do you a translation for the site content or your code? Link to comment https://forums.phpfreaks.com/topic/40504-unicode-in-phphtml/#findComment-195961 Share on other sites More sharing options...
Echilon Posted February 28, 2007 Author Share Posted February 28, 2007 I just need to translate the content, the code will stay in english, because the user only sees what's defined in constants. Link to comment https://forums.phpfreaks.com/topic/40504-unicode-in-phphtml/#findComment-195971 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.