CGI Unicode issue?
Michael Ströder
michael at stroeder.com
Mon Apr 2 02:26:16 EDT 2001
Tim Roberts wrote:
>
> After a fair amount of web digging, I've learned that these codes are
> base64-encoded Unicode-16 characters.
> [..]
> However, I don't understand why I see these. There is nothing in the CGI
> environment variables that indicates I should be expecting any kind of
> unusual encoding.
You should tell the web client which charset you're expecting by
setting accept-charset attribute in the <form> tag.
Example:
<form [..other attributes..] accept-charset="utf-8">
Ciao, Michael.
More information about the Python-list
mailing list