Re: Using preg_match to find Japanese text

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear all and Dave,

>I want to divide the first line into three variables, $word, $reading, 
>and $meaning. And I want to divide the second line into two variables, 
>$word and $meaning.

What you(Dave) want seems to have some resemblance to 
what I tackled in last month.I tried to sort out some japanese
characters which can input to my server but cannot be displayed
correctly in japanese-main-portable-phone-browsers through my poor
program.

>The following contains UTF-8 encoded Japanese text. 

If you specify EUC-JP in [mbstring] of "php.ini"
(this is usual way when using Japanese character in PHP),
 I propose first to change that into Shift-JIS to solve this problem.
Probably, you specify UTF-8 in charaset in your ".php"s.
I propose to change it into SHIFT-JIS.

As far as I executed, it is difficult to extract the specific japanese
word.

I think that you should add the processing which replaces a Japanese
word with the other language ( English ) once in your server.

In my case,I first made the list of the words which aren't displayed
correctly in main-japanese-portable-phone-browsers through my poor
program.Then, I checked a "non-displayed-word" on the list and programed
to sort out a "non-displayed-word" (,and replace a "non-displayed-word"
to a image).

What I wrote above is probably not the advice which you(Dave) demand.
I do not see linkpages in your e-mail yet.I am sorry of my poor advice.
Anway,I send this to you.

Thank you for being interested in Japanese.>Dave

Thank you for developing [mbstring] in php.ini. >developers.
.
Madoca

Attachment: signature.asc
Description: =?UTF-8?Q?=E3=81=93=E3=81=AE=E3=83=A1=E3=83=83=E3=82=BB=E3=83=BC?= =?UTF-8?Q?=E3=82=B8=E3=81=AB=E3=81=AF=E3=83=87=E3=82=B8=E3=82=BF?= =?UTF-8?Q?=E3=83=AB=E7=BD=B2=E5=90=8D=E3=81=95=E3=82=8C=E3=81=9F?= =?UTF-8?Q?=E9=83=A8=E5=88=86=E3=81=8C=E3=81=82=E3=82=8A=E3=81=BE?= =?UTF-8?Q?=E3=81=99?=


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux