A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2000-December/011098.html below:

[Python-Dev] Use of %c and Py_UNICODE

[Python-Dev] Use of %c and Py_UNICODE [Python-Dev] Use of %c and Py_UNICODEM.-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/



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4