[Python-Dev] Use of %c and Py_UNICODE
M.-A. Lemburg
mal@lemburg.com
Mon, 18 Dec 2000 11:04:08 +0100
Greg Ewing wrote:
>
> "M.-A. Lemburg" <mal@lemburg.com>:
>
> > Format characters will always
> > be ASCII and thus 7-bit -- theres really no need to expand the
> > set of possibilities beyond 8 bits ;-)
>
> But the error message is being produced because the
> character is NOT a valid format character. One of the
> reasons for that might be because it's not in the
> 7-bit range!
True.
I think removing %c completely in that case is the right
solution (in case you don't want to convert the Unicode char
using the default encoding to a string first).
--
Marc-Andre Lemburg
______________________________________________________________________
Company: http://www.egenix.com/
Consulting: http://www.lemburg.com/
Python Pages: http://www.lemburg.com/python/