RE: [PHP] Japanese character validation
| From: | umesh | Date: | Fri, 07 Nov 2003 09:20:49 +0000 |
| Subject: | RE: [PHP] Japanese character validation | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-168809@lists.php.net to get a copy of this message | ||
Hi Edwin,
----Original Message-----
From: - Edwin - [mailto:copperwa11s@yahoo.co.jp]
Sent: Friday, November 07, 2003 2:02 PM
To: umesh
Cc: php-general@lists.php.net
Subject: Re: [PHP] Japanese character validation
Hi,
On Fri, 7 Nov 2003 12:58:51 +0530
"umesh" <umesh.deshmukh@manas-solutions.com> wrote:
> Hi Gurus,
>
> I am new to PHP. I am using PHP4 on Linux.
>
> I have accept input from the user and check if the input is
> japanese character only,
> for example : If name is accepted , I need to check if its
> any of the Hiragana, Katakana or Kanji.
Hmm... why would you like to do that? I've never really seen
the need for that.
As there are fields called Last & First Name (Kanji) and Last & First name (Kana) on my
forms. Its the need of the application.
It would be great, If I could do that.
I'm sure there will be a lot of issues if you want to write
one yourself...
Actually, I have tried to do it, but it wont understand some characters. Like ①.
> I have enabled multibyte support while compiling PHP.
>
> As there is jcode.pl in perl, I want to know if there is
> something in PHP. Can anybody help me in this regard.
That's a library for character code conversion.
PHP can do that as well:
http://www.php.net/mbstring
- E -
__________________________________________________
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/