I\'m writing a Python script to process some music data. It\'s supposed to merge two separate databases by comparing their entries and matching them up. It\'s almost working, bu
To find out whether YOU (not it) are storing your strings as str
objects or unicode
objects, print type(your_string)
.
You can use print repr(your_string)
to show yourself (and us) unambiguously what is in your string.
By the way, exactly what version of Python are you using, on what OS? If Python 3.x, use ascii()
instead of repr()
.