GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • [Python-Dev] Use of %c and Py_UNICODE
  • [Python-Dev] Use of %c and Py_UNICODE
  • [ date ]
  • [ thread ]
  • [ subject ]
  • [ author ]

This view

  • Original page
  • New address

GeezerVison is showing mail.python.org — [Python-Dev] Use of %c and Py_UNICODE

[Python-Dev] Use of %c and Py_UNICODE

M.-A. Lemburg [email protected]
Mon, 18 Dec 2000 11:04:08 +0100

  • Previous message: [Python-Dev] Use of %c and Py_UNICODE
  • Next message: [Python-Dev] Use of %c and Py_UNICODE
  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

Greg Ewing wrote:
> 
> "M.-A. Lemburg" <[email protected]>:
> 
> > 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/



  • Previous message: [Python-Dev] Use of %c and Py_UNICODE
  • Next message: [Python-Dev] Use of %c and Py_UNICODE
  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.