Japanese entry into MySQL and into emails

From: Dave G (ml_at_autotelic.com)
Date: 10/30/03


To: <php-general@lists.php.net>
Date: Thu, 30 Oct 2003 18:11:51 +0900

PHP Gurus,
        Hello, I'm new to this list. I'm very much new to PHP, so my
questions will be very basic.
        I have two things I need to do in Japanese:

        1. Store people's names in kanji in my MySQL database.
        To this end, I've set up an INSERT command without doing
anything different than usual, and then at the HTML interface, just
typed in some Japanese text (on an English Windows XP machine, Opera
7.2, using Microsoft's global IME text entry). When I looked in my
database via phpMyAdmin, the field looked like it was filled with ASCII
gibberish.

        2. Send kanji text via PHPs mail() command.
        I've set up a form on a web page, that posts to a PHP script
that will send me feedback from the users. Again, I didn't set up
anything different than I would for English usage. When I received the
mail, it came out as ASCII gibberish again.

        I've searched some on the web, and in this lists archives, and I
understand that I can possibly use mbstring functions in order to
resolve this. However, the manual for this function on php.net is a
little beyond my ability to understand it. I'm confused by the need to
set "internal encoding", and/or also setting the "character set". My web
site is on a virtual host, and I don't know if I have access to make
such adjustments.

        Can someone please explain in beginners terms how do I set up my
PHP scripts to enter Japanese kanji safely into a database and into an
email?

-- 
Cheers!
Dave G
ml@autotelic.com


Relevant Pages

  • Searching for Japanese content
    ... will support both searching of Japanese and English ... I have an English website and Japanese website hosted on ... an English Windows 2000 Advanced Server using IIS 5.0. ...
    (microsoft.public.inetserver.indexserver)
  • About Partition Manager
    ... I have a HDD in which Win2K Japanese is installed. ... When I try to repartition with a partition manager that works with English Windows or DOS, the partition manager indicates that format is invalid and refuses to do anything further. ... 1.Is there any difference between formatting with, say, NTFS in English Windows and formatting with NTFS in Japanese Windows? ...
    (microsoft.public.win2000.general)
  • Re: Type Asian Characters in English XP Pro
    ... I am trying to type Japanese Kanji characters in English Windows XP ... I have enabled the East Asian ...
    (microsoft.public.windowsxp.general)
  • Japanese characters not showing up in subject line
    ... Running Outlook 2003 on an US English Windows XP ... Professional system with the multi language pack installed. ... When changing to Japanese it will let me type out the body ... of the email in Japanese but will revert back to English ...
    (microsoft.public.outlook)