(keitai-l) Re: PHP and Japanese characters: Looking for wisdom

From: Nick May <nick_at_kyushu.com>
Date: 06/02/07
Message-Id: <69B766F4-687D-4997-80E3-B70D19AE490A@kyushu.com>
What are your  mbstring php.ini settings?

for input, output, internal etc.

How exactly do you get the text from your js into php?

Nick


Japanese Maps, English Labels.
Find Japanese addresses in English.
http://diddlefinger.com



On 1 Jun 2007, at 22:14, Erick Papadakis wrote:

> When we capture the TITLE (document.title) from these websites, and
> then "rawurldecode" the received text in PHP, the string comes up
> jumbled. If we knew the standard character set before hand, we could
> have used the right mb_convert_encoding and such, but this is now an
> issue. We tried using Javascript's "document.defaultCharset" thingie,
> but that doesn't work either -- I wonder if that's a deprecated
> element of the document object?
>
> Would appreciate any insight into how you have solved the issue of
> different in-coming text into programs. The php function
> "mb_detect_encoding" is totally useless. Given a string, it always
> seems to return utf-8.
Received on Sat Jun 2 05:47:54 2007