Thanks, Sion, that makes sense!
Would it be correct to assume that the encoding of strings retrieved
by FieldStorage() would be the same as the encoding of the submitted
web form (in my case utf-8)?
Funny but I have the same form implemented in PSP (Python Server
Pages), running under Apache with
coldpizza <[EMAIL PROTECTED]> wrote:
>I am using this 'word' variable like this:
>
>print u'' % (word)
>
>and apparently this causes exceptions with non-ASCII strings.
>
>I've also tried this:
>print u'' %
>(word.encode('utf8'))
>but I still get the same UnicodeDecodeError..
Your 'word' i