UnicodeDecodeError when using a Python string handling function
I'm doing this:

    word.rstrip(s)

Where word and s are strings containing unicode characters.

I'm getting this:

    UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position 0: ordinal not in range(128)

There's a bug report where this error happens on some Windows Django systems. However, my situation seems unrelated to that case.

What could be the problem?
UnicodeDecodeError when using a Python string handling function
===

I'm doing this:

    word.rstrip(s)

Where word and s are strings containing unicode characters.

I'm getting this:

    UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position 0: ordinal not in range(128)

There's a bug report where this error happens on some Windows Django systems. However, my situation seems unrelated to that case.

What could be the problem?