Re: assign japanese string to variable
Christophe Chisogne <[email protected]>
| Newsgroups | gmane.comp.php.internationalization |
|---|---|
| Message-ID | <[email protected]> |
> $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 -- PHP Internationalization Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php