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

A

akhil1988

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,038
Latest member
OrderProperKetocapsules

Latest Threads

Top