php-i18n Digest 1 Apr 2004 12:52:29 -0000 Issue 222

Topics (messages 679 through 679):

Where to Begin?
        679 by: Jamie

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin 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

--- End Message ---

Reply via email to