Message135268
| Author |
cdqzzy |
| Recipients |
cdqzzy |
| Date |
2011年05月06日.09:16:14 |
| SpamBayes Score |
1.9107114e-05 |
| Marked as misclassified |
No |
| Message-id |
<1304673377.35.0.784853339325.issue12016@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
let s='\xff\n'
The expected result of s.decode('gb2312', 'ignore') is u"\n", while in 2.6.6 it is u"".
s can be replaced with chr(m) + chr(n) , where m is in range of 128~255, and n in 0~127.
In the above cases, try decoding from chr(n) will never interfere with later parts in the string if there is any, since chr(n) do not start a multibyte sequence. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年05月06日 09:16:17 | cdqzzy | set | recipients:
+ cdqzzy |
| 2011年05月06日 09:16:17 | cdqzzy | set | messageid: <1304673377.35.0.784853339325.issue12016@psf.upfronthosting.co.za> |
| 2011年05月06日 09:16:14 | cdqzzy | link | issue12016 messages |
| 2011年05月06日 09:16:14 | cdqzzy | create |
|