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