Re: Interpreting Unicode scripts
That document did help, thanks, although I was initially disconcerted to see that it's written in the future tense. Anyway, it works with Python 2.4. Keith MacDonald "Fredrik Lundh" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > reading PEP 263 might help: > >http://www.python.org/peps/pep-0263.html > > (summary: encode as utf-8, prepend "# coding: utf-8\n", and you're done) > > > > > -- http://mail.python.org/mailman/listinfo/python-list
Re: Interpreting Unicode scripts
Keith MacDonald wrote: > I am considering embedding Python in a C++ application, which works > internally in UTF-16. The only API I can find for running scripts is > PyRun_SimpleString(const char*). Does that mean that Python is unable to > execute scripts containing characters from more than one code page? reading PEP 263 might help: http://www.python.org/peps/pep-0263.html (summary: encode as utf-8, prepend "# coding: utf-8\n", and you're done) -- http://mail.python.org/mailman/listinfo/python-list
Interpreting Unicode scripts
Hello, I am considering embedding Python in a C++ application, which works internally in UTF-16. The only API I can find for running scripts is PyRun_SimpleString(const char*). Does that mean that Python is unable to execute scripts containing characters from more than one code page? Thanks, Keith MacDonald -- http://mail.python.org/mailman/listinfo/python-list