消息 [89551]
Converting from UTF-8 to Unicode is the right thing to do, but
converting back to Latin-1 is not correct -- note that ET returns a
Unicode string, not an 8-bit string. There's a "makestring" helper that
does the right thing in the library; just changing:
parcel = Py_BuildValue("ss", (prefix) ? prefix : "", uri);
to
parcel = Py_BuildValue("sN", (prefix) ? prefix : "", makestring(uri));
should work (even if you should probably do that in two steps, and look
for errors from makestring before proceeding). |
|
| 日期 |
用户 |
动作 |
参数 |
| 2009-06-21 00:15:39 | effbot | 修改 | recipients:
+ effbot, Neil Muller, jerith, nlopes |
| 2009-06-21 00:15:38 | effbot | 修改 | messageid: <1245543338.63.0.972041328534.issue6266@psf.upfronthosting.co.za> |
| 2009-06-21 00:15:37 | effbot | 链接 | issue6266 messages |
| 2009-06-21 00:15:36 | effbot | 创建 | |
|