homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author dzaamek
Recipients dzaamek, ezio.melotti, vstinner
Date 2014年03月24日.16:17:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1395677822.9.0.352855585113.issue21051@psf.upfronthosting.co.za>
In-reply-to
Content
I use python 2.7.6 on win32.
If I enter u'\u010d'.encode('utf-8') to console, I get '\xc4\x8d' as response. That's correct.
But it I use C API for the same, I get incorrect '\xc3\xa8' as response. 
I was testing it on this program:
#include <Python.h>
int main() {
Py_Initialize();
PyObject* dict = PyDict_New();
PyRun_String("u'\u010d'.encode('utf-8')", Py_single_input, dict, dict);
Py_DECREF(dict);
}
History
Date User Action Args
2014年03月24日 16:17:02dzaameksetrecipients: + dzaamek, vstinner, ezio.melotti
2014年03月24日 16:17:02dzaameksetmessageid: <1395677822.9.0.352855585113.issue21051@psf.upfronthosting.co.za>
2014年03月24日 16:17:02dzaameklinkissue21051 messages
2014年03月24日 16:17:02dzaamekcreate

AltStyle によって変換されたページ (->オリジナル) /