UnicodeEncodeError: 'ascii' codec can't encode character u'\xb7' in

Discussion in 'Python' started by akhil1988, Jul 16, 2009.

  1. akhil1988

    akhil1988 Guest

    Hi!

    Can anyone please help me getting rid of this error:
    UnicodeEncodeError: 'ascii' codec can't encode character u'\xb7' in position
    13: ordinal not in range(128)

    I am not a python programmer (though intend to start learning this wonderful
    language), I am just using a python script.

    After doing some search, I found that 0xb7 is a 'middle dot character' that
    is not interpreted by the python.
    Even after inserting text = text.replace('\u00b7', '') in the script, the
    problem still persists.

    Can anyone please tell me the easiest way to get rid of this?

    --Thanks,
    Akhil
    --
    View this message in context: http://www.nabble.com/UnicodeEncode...al-not-in-range(128)-tp24509879p24509879.html
    Sent from the Python - python-list mailing list archive at Nabble.com.
     
    akhil1988, Jul 16, 2009
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. oziko
    Replies:
    1
    Views:
    669
    Leif K-Brooks
    Aug 17, 2004
  2. Martin Slouf
    Replies:
    6
    Views:
    1,329
    Martin Slouf
    Aug 18, 2004
  3. oziko
    Replies:
    2
    Views:
    12,005
    Diez B. Roggisch
    Aug 17, 2004
  4. thomas Armstrong

    'ascii' codec can't encode character u'\u2013'

    thomas Armstrong, Sep 30, 2005, in forum: Python
    Replies:
    3
    Views:
    5,048
    John J. Lee
    Sep 30, 2005
  5. Francach
    Replies:
    2
    Views:
    37,305
    Diez B. Roggisch
    Nov 6, 2005
  6. akhil1988
    Replies:
    16
    Views:
    1,425
    akhil1988
    Jul 18, 2009
  7. akhil1988
    Replies:
    1
    Views:
    1,836
    Piet van Oostrum
    Jul 16, 2009
  8. balavignesh
    Replies:
    0
    Views:
    2,203
    balavignesh
    Nov 8, 2009
Loading...