Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #12306

Re: UnicodeEncodeError -- 'character maps to <undefined>'

From Ben Finney <ben+python@benfinney.id.au>
Newsgroups comp.lang.python
Subject Re: UnicodeEncodeError -- 'character maps to <undefined>'
References <32ed9303-96d6-4576-bb49-8b5fbefb0e30@glegroupsg2000goo.googlegroups.com> <4e590684$0$29972$c3e8da3$5496439d@news.astraweb.com>
Date 2011-08-28 07:51 +1000
Message-ID <87zkiuttf5.fsf@benfinney.id.au> (permalink)
Organization Unlimited download news at news.astraweb.com

Show all headers | View raw


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

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

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

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

UnicodeEncodeError --  'character maps to <undefined>' J <1jason.whatford@gmail.com> - 2011-08-27 06:55 -0700
  Re: UnicodeEncodeError --  'character maps to <undefined>' Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-08-28 01:00 +1000
    Re: UnicodeEncodeError --  'character maps to <undefined>' Ben Finney <ben+python@benfinney.id.au> - 2011-08-28 07:51 +1000

csiph-web