PythonWin ASP Unicode woes

Mark Hammond mhammond at skippinet.com.au
Fri Aug 16 20:09:24 EDT 2002


Steve Holden wrote:
> "Fredrik Lundh" <fredrik at pythonware.com> wrote ...
> 
>>Steve Holden wrote:
> Thanks. It turned out to be \xa0 characters, which I assume came from an
> HTML " " via a copy-and-paste operation or some such. For some reason I
> could only get a sensible (repr()"able and str()'able) value from the ASP
> Request.Form object by using
> 
>     Request.Form["FieldName"].Item
> 
> where I had originally been using
> 
>     Request.Form("FieldName")

This has actually been fixed in win32all (next build).  Using the 
"default" method (as your first example) relied on __str__ working.  Now 
it should return the same Unucode object that the explicit method call does.

Mark.




More information about the Python-list mailing list