Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56023 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 42905 invoked from network); 3 Nov 2011 09:51:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Nov 2011 09:51:55 -0000 Authentication-Results: pb1.pair.com smtp.mail=glopes@nebm.ist.utl.pt; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=glopes@nebm.ist.utl.pt; sender-id=unknown Received-SPF: error (pb1.pair.com: domain nebm.ist.utl.pt from 85.139.253.17 cause and error) X-PHP-List-Original-Sender: glopes@nebm.ist.utl.pt X-Host-Fingerprint: 85.139.253.17 unknown Linux 2.6 Received: from [85.139.253.17] ([85.139.253.17:53052] helo=alfresco) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D8/84-14104-73462BE4 for ; Thu, 03 Nov 2011 04:51:52 -0500 Received: from localhost ([127.0.0.1] helo=clk-0081.mshome.net) by alfresco with esmtp (Exim 4.72) (envelope-from ) id 1RLtxc-0003Ar-Vq for internals@lists.php.net; Thu, 03 Nov 2011 09:51:49 +0000 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: internals@lists.php.net References: <4EB23E3D.3010908@zend.com> <4EB25BF3.7040703@zend.com> Date: Thu, 03 Nov 2011 09:51:48 -0000 MIME-Version: 1.0 Content-Transfer-Encoding: Quoted-Printable Organization: =?utf-8?Q?N=C3=BAcleo_de_Eng=2E_Biom=C3=A9di?= =?utf-8?Q?ca_do_I=2ES=2ET=2E?= Message-ID: In-Reply-To: User-Agent: Opera Mail/11.52 (Win32) Subject: Re: [PHP-DEV] Zend Multibyte support From: glopes@nebm.ist.utl.pt ("Gustavo Lopes") Em Thu, 03 Nov 2011 09:38:11 -0000, Yasuo Ohgaki = escreveu: > Oops, I thought "?" was due to terminal encoding, but I double checked= = > with > redirecting to a file. > > $ ./sapi/cli/php -d zend.multibyte=3D1 -d zend.script_encoding=3DSJIS = = > sjis.php > tt > > It became "?" instead of "=E8=A1=A8".. > 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 =E8=A1=A8 | uconv -f utf-8 -t sjis > sjis.php $./php -d zend.multibyte=3D1 -d zend.script_encoding=3DSJIS -d = mbstring.internal_encoding=3Dutf-8 sjis.php =E8=A1=A8 -- = Gustavo Lopes