Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56386 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 37444 invoked from network); 18 Nov 2011 09:04:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Nov 2011 09:04:10 -0000 Authentication-Results: pb1.pair.com header.from=confik@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=confik@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.170 as permitted sender) X-PHP-List-Original-Sender: confik@gmail.com X-Host-Fingerprint: 209.85.213.170 mail-yx0-f170.google.com Received: from [209.85.213.170] ([209.85.213.170:64398] helo=mail-yx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 93/C4-06569-98F16CE4 for ; Fri, 18 Nov 2011 04:04:10 -0500 Received: by yenl2 with SMTP id l2so2507532yen.29 for ; Fri, 18 Nov 2011 01:04:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=yZ0EBPuKRhNHDjtl6q0STNeD+6CYnT03wbZqPE3ZIfk=; b=EK3wk9P8oJxS3rhAtgboQx7q4Uy5fNex6IVA+Ezn+51B7yhGSMFUZjgRu5Njs0/LuB vP/I+IXcfnwq86pftMyqnV1604NCVICknUSj041aM2Fv39DI59NUBqpIN01DgLhunPOM RYX0tLK9I9FpS+veBvcsoEsg7T4l7dHBrLYk8= Received: by 10.236.22.4 with SMTP id s4mr3076178yhs.8.1321607046228; Fri, 18 Nov 2011 01:04:06 -0800 (PST) MIME-Version: 1.0 Received: by 10.100.213.16 with HTTP; Fri, 18 Nov 2011 01:03:45 -0800 (PST) In-Reply-To: References: Date: Fri, 18 Nov 2011 14:03:45 +0500 Message-ID: To: Laruence Cc: PHP Internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Re: Character lost while convert from cp936 to utf-8 using mb_convert_encoding From: confik@gmail.com (Alexey Shein) Well done! :) 2011/11/18 Laruence : > Hi: > > =C2=A0 I have fixed the bug(it is a simple fix that I didn't expect befor= e > I look into it ), =C2=A0ignore me... > > thanks > > On Fri, Nov 18, 2011 at 1:09 PM, Laruence wrote: >> Hi: >> >> =C2=A0 I have filed a bug about this issue: https://bugs.php.net/bug.php= ?id=3D60306 >> >> =C2=A0 following script: >> >> > $s =3D "=E6=B4=AA=E4=BB=81"; >> var_dump(mb_convert_encoding($s, "utf8", "gbk")); >> >> var_dump(iconv("gbk", "utf8", $s)); >> ?> >> >> save the script in fenc=3Dcp936 >> >> then, run the script in php5.4 , output is : >> >> string(3) "=E6=B4=AA" >> string(6) "=E6=B4=AA=E4=BB=81" >> >> characters lost while converting from cp936 to utf8. this is really a bi= g >> problem..... >> >> >> thanks >> -- >> Laruence =C2=A0Xinchen Hui >> http://www.laruence.com/ >> > > > > -- > Laruence =C2=A0Xinchen Hui > http://www.laruence.com/ > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --=20 Regards, Shein Alexey