UnicodeEncodeError -- 'character maps to <undefined>'

Ben Finney ben+python at benfinney.id.au
Sat Aug 27 17:51:10 EDT 2011

Steven D'Aprano <steve+comp.lang.python at pearwood.info> writes:

> >>> s = u'BIEBER FEVER \u2665'
> >>> print s  # Printing Unicode is fine.

You're a cruel man. Why do you hate me?

 \         “If nature has made any one thing less susceptible than all |
  `\    others of exclusive property, it is the action of the thinking |
_o__)              power called an idea” —Thomas Jefferson, 1813-08-13 |
Ben Finney

More information about the Python-list mailing list