why in python giving to str func a unicode string will throw an exception?

Posted by yakov on Stack Overflow See other posts from Stack Overflow or by yakov
Published on 2010-05-06T10:43:07Z Indexed on 2010/05/06 10:48 UTC
Read the original article Hit count: 253

Filed under:
|
|

for example the following: str(u'test') will throw an error. how can i prevent these?

© Stack Overflow or respective owner

Related posts about python

Related posts about unicode