Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56385 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35411 invoked from network); 18 Nov 2011 08:52:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Nov 2011 08:52:53 -0000 Authentication-Results: pb1.pair.com smtp.mail=laruence@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=laruence@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.170 as permitted sender) X-PHP-List-Original-Sender: laruence@gmail.com X-Host-Fingerprint: 209.85.220.170 mail-vx0-f170.google.com Received: from [209.85.220.170] ([209.85.220.170:49829] helo=mail-vx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 95/64-06569-CDC16CE4 for ; Fri, 18 Nov 2011 03:52:45 -0500 Received: by vcbfl10 with SMTP id fl10so3265928vcb.29 for ; Fri, 18 Nov 2011 00:52:42 -0800 (PST) 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:content-type :content-transfer-encoding; bh=A2sS1PFUv2hg9ifPYGW+rRQUZhXi6QSbdNYmK3I108E=; b=hIUx+N8Ku8UwD9daMAs3W6u8hwnmvFbNDRM8368ZfLcbiTzpnvJ8v+yUBJt9EAg0Cd Aorq/IlFCzaclajScPHil46znoA89DITTLQiiqKtMUdSuAUgDmpFT+uN/K0G+/1og5Fb amO0vzCxMzhtt+pPvCkCa2vS/6mTfGJWFfXwA= Received: by 10.220.38.69 with SMTP id a5mr173228vce.51.1321606362056; Fri, 18 Nov 2011 00:52:42 -0800 (PST) MIME-Version: 1.0 Sender: laruence@gmail.com Received: by 10.220.150.211 with HTTP; Fri, 18 Nov 2011 00:52:21 -0800 (PST) In-Reply-To: References: Date: Fri, 18 Nov 2011 16:52:21 +0800 X-Google-Sender-Auth: -6mqSHSzj8YwPtkK5KoyyS3NTyw Message-ID: To: PHP Internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: Character lost while convert from cp936 to utf-8 using mb_convert_encoding From: laruence@php.net (Laruence) Hi: I have fixed the bug(it is a simple fix that I didn't expect before I look into it ), ignore 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 big > problem..... > > > thanks > -- > Laruence =C2=A0Xinchen Hui > http://www.laruence.com/ > --=20 Laruence =C2=A0Xinchen Hui http://www.laruence.com/