Re: Zend Multibyte support
| From: | Gustavo Lopes | Date: | Thu, 03 Nov 2011 09:51:48 +0000 |
| Subject: | Re: Zend Multibyte support | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-56023@lists.php.net to get a copy of this message | ||
Em Thu, 03 Nov 2011 09:38:11 -0000, Yasuo Ohgaki <yohgaki@ohgaki.net> escreveu:
Oops, I thought "?" was due to terminal encoding, but I double checked with redirecting to a file. $ ./sapi/cli/php -d zend.multibyte=1 -d zend.script_encoding=SJIS sjis.php > tt It became "?" instead of "表".. It seems something wrong. Thanks for you time.You also have to say what it's converted *to* (I think, but I'm not sure, the default is ISO-8859-1). This works: $echo 表 | uconv -f utf-8 -t sjis > sjis.php $./php -d zend.multibyte=1 -d zend.script_encoding=SJIS -d mbstring.internal_encoding=utf-8 sjis.php 表 -- Gustavo Lopes