Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56024 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 45278 invoked from network); 3 Nov 2011 10:08:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Nov 2011 10:08:03 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.42 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.213.42 mail-yw0-f42.google.com Received: from [209.85.213.42] ([209.85.213.42:62146] helo=mail-yw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C8/F4-14104-20862BE4 for ; Thu, 03 Nov 2011 05:08:02 -0500 Received: by ywb26 with SMTP id 26so1263925ywb.29 for ; Thu, 03 Nov 2011 03:08:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=UPNGGgotQ7MhSFZaw29ujqNWe/ZZNbqhqNUu/equjJg=; b=O74bCYNufuhHZbXATdenNjmAN6/CQ6WtUrkm6zqccoNnpNBobHdiFkdO1jO0Zj0CF1 HjAkaYxur48QAi90HfNRPviuOVKU4CEYWO04CyURnz5ESCOE1wXhkPyE0F43YgyYiuq1 j0eYvcMrKt4MVsL+Q30sbETOQbdDggiYyXrZg= Received: by 10.100.234.39 with SMTP id g39mr1873215anh.29.1320314880187; Thu, 03 Nov 2011 03:08:00 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.100.106.11 with HTTP; Thu, 3 Nov 2011 03:07:19 -0700 (PDT) In-Reply-To: References: <4EB23E3D.3010908@zend.com> <4EB25BF3.7040703@zend.com> Date: Thu, 3 Nov 2011 19:07:19 +0900 X-Google-Sender-Auth: R12hfjyqe6zvygzSzI3vz2LcR44 Message-ID: To: Gustavo Lopes Cc: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Zend Multibyte support From: yohgaki@ohgaki.net (Yasuo Ohgaki) Hi Gutavo, Now I see what is going on. I thought string is treated as just a bunch of data once is was compiled and passed through. $ ./sapi/cli/php -d zend.multibyte=3D1 -d zend.script_encoding=3DSJIS -d mbstring.internal_encoding=3Dutf-8 sjis.php=C2=A0=E8=A1=A8 Thanks for your time. May be I should document this, since there may be a confusion. -- Yasuo Ohgaki yohgaki@ohgaki.net On Thu, Nov 3, 2011 at 6:51 PM, Gustavo Lopes wrot= e: > 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 sj= is.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 > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >