Re: assign japanese string to variable

From: Date: Thu, 17 Mar 2005 10:39:43 +0000
Subject: Re: assign japanese string to variable
References: 1  Groups: php.i18n 
Request: Send a blank email to php-i18n+get-846@lists.php.net to get a copy of this message
$str = "グッドバイピカソ"; ..
Parse error: parse error, unexpected $ in
You probably use an multibyte encoding that use a value from 00h to 7fh (in a compounded byte) that represents a single character. I guess it's a charset/encoding problem. A safe charset is the UTF-8 encoding of Unicode, because value from 00h to 7fh arent used in any compouned byte. Check the php manual about mbstrings [1] and iconv [2], where you'll found workaround and other information Excerpt: "These are examples of character encodings that are unlikely to work with PHP : JIS, SJIS, ISO-2022-JP, BIG-5" [1] LXIV. Multibyte String Functions http://www.php.net/manual/en/ref.mbstring.php [2] XLVIII. iconv Functions http://www.php.net/manual/en/ref.iconv.php

« previous php.i18n (#846) next »