I have the following code in a form submission and it jumbles my Japanese text -
When I replaced it with the following my Japanese text is ok -
The following field also gives me some jumbled text SOMETIMES -
What is the best way to handle the Japanese text and strip out anything that is not needed (not really sure what that might be) but keep the text from being jumbled.
I guess it has something to do with Japanese characters being 2 bytes per character.
Thanks
PHP:
$name = ucfirst(strtolower(strip_tags($_REQUEST["name"])));
When I replaced it with the following my Japanese text is ok -
PHP:
$name=$_REQUEST['name'];
The following field also gives me some jumbled text SOMETIMES -
PHP:
$content = strip_tags($_REQUEST['content']);
What is the best way to handle the Japanese text and strip out anything that is not needed (not really sure what that might be) but keep the text from being jumbled.
I guess it has something to do with Japanese characters being 2 bytes per character.
Thanks