Where to Begin?

From: Date: Thu, 01 Apr 2004 07:25:50 +0000
Subject: Where to Begin?
Groups: php.i18n 
Request: Send a blank email to php-i18n+get-679@lists.php.net to get a copy of this message
Hi, i've been doing a little php programming for a while now, as well as interacting with japanese data and mysql. But now i need to rewrite my site to account for the possibility of mutliple languages being used on the one page. What i had intended to do was to store everything in the database as UTF-8, and to output the html pages as UTF-8. I've read about the slashes issues and the internal encoding issues and i think i understand. But, if i have a page that requires input in Japanese and Hangul, what should i set the internal encoding as: mbstring.internal_encoding = UTF-8 What i'm not too sure about is, if the user uses an IME with SJIS to input japanese, and then another IME to inpout the Korean, does PHP convert this to UTF-8? And if i need to fill the form back in (mistakes or omissions) do i need to convert the text back to some other format? If i pull UTF-8 text from a DB,how or do i need to convert it (to SJIS for example) to fill i a form? Lastly, would it be advisable to give users the ability to output a HTML page in another character set (UTF default -> User wants SJIS) as long as their are only japanese charaters to display? Sorry if i don't exactly make much sense, i'm still trying to come to terms with dealing with multiple character sets and IME's. Many Thanks Jamie

« previous php.i18n (#679) next »