help with UnicodeEncodeError('ascii', u'Phase \u2013 II', 6, 7, 'ordinal not in range(128)')
Posted
by laspal
on Stack Overflow
See other posts from Stack Overflow
or by laspal
Published on 2010-04-22T07:10:29Z
Indexed on
2010/04/22
7:13 UTC
Read the original article
Hit count: 227
python
Hi, having problem with UnicodeEncodeError('ascii', u'Phase \u2013 II', 6, 7, 'ordinal not in range(128)') Basically what I am doing here is reading the value from excel sheet and sheet contain address in this format
Phase- II
So wanted to know how to change`
somestring = u'Phase \u2013 II'
to str
thanks
`
© Stack Overflow or respective owner