Hi, when getting text via the raw_input method it's always a string (even if
it contains non-ASCII characters). The problem lies in that whenever I try
to check equality against a Unicode string it fails. I've tried using the
unicode method to 'cast' the string to the Unicode type but this throws
In order to convert a byte sequence to Unicode, Python needs to know
the encoding being used. When you don't specify a encoding, it tries
ASCII, which obviously errors if your byte sequence isn't ASCII, like
in your case.
Figure out what encoding your terminal/system is set to, then use the
2008/10/11 Damian Johnson [EMAIL PROTECTED]
Hi, when getting text via the raw_input method it's always a string (even
if it contains non-ASCII characters). The problem lies in that whenever I
try to check equality against a Unicode string it fails. I've tried using
the unicode method to