[PHP] PHP, MySQL, and Japanese text

2002-11-12 Thread Step Schwarz
Hi all,

I was hoping to find some code examples or tutorials on using PHP/MySQL with
Japanese text.  The site I've built is very close, but apparently a very
small subset of the characters become garbage when pulled from the database
into a form to be modified and resubmit to the database.  Text in textarea
tags seems immune -- it's only the text pulled into input tags.

I've tried to follow the PHP documentation on handling multibyte characters
but without practical examples it really just doesn't make a lot of sense to
me.

I'm not currently using encoding or output buffering at all -- I've just set
the language to be shift_jis in a meta tag.

Thanks in advance,
-Step


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PHP, MySQL, and Japanese text

2002-11-12 Thread @ Edwin
Hello,

Step Schwarz [EMAIL PROTECTED] wrote:

 Hi all,

 I was hoping to find some code examples or tutorials on using PHP/MySQL
with
 Japanese text.  The site I've built is very close, but apparently a very

I'm not sure about tutorials in English but if you know Japanese, I'm sure
you can just google for them. :)

 small subset of the characters become garbage when pulled from the
database
 into a form to be modified and resubmit to the database.  Text in
textarea
 tags seems immune -- it's only the text pulled into input tags.

I'm not really sure if I understand what you meant here--perhaps you can
post some sample codes?

 I've tried to follow the PHP documentation on handling multibyte
characters
 but without practical examples it really just doesn't make a lot of sense
to
 me.

 I'm not currently using encoding or output buffering at all -- I've just
set
 the language to be shift_jis in a meta tag.

You mean in your html pages? That wouldn't really work unless you've
configured php to handle multi-byte characters. (Maybe not necessary in
4.3.x versions...) Besides, you also need to configure MySQL to handle the
Japanese characters. You need to check your configuration/settings in your
my.cnf and php.ini.

Without any code snippets and environment info, it'll be hard for anybody to
help out...

- E


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php