Re: PHP, MySQL, and Japanese text
| From: | @ Edwin | Date: | Wed, 13 Nov 2002 02:28:08 +0000 |
| Subject: | Re: PHP, MySQL, and Japanese text | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-124134@lists.php.net to get a copy of this message | ||
Hello,
"Step Schwarz" <step@closethipster.com> 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