[Tutor] ascii to/from AL32UTF8 conversion
bruce
badouglas at gmail.com
Sun Nov 22 23:19:17 EST 2015
Hi.
Doing a 'simple' test with linux command line curl, as well as pycurl
to fetch a page from a server.
The page has a charset of >>AL32UTF8.
Anyway to conert this to straight ascii. Python is throwing a
notice/error on the charset in another part of the test..
The target site is US based, so there's no weird chars in it.. I
suspect that the page/system is based on legacy oracle
The metadata of the page is
<META HTTP-EQUIV="Content-Type" NAME="META" CONTENT="text/html;
charset=AL32UTF8">
I tried the usual
foo = foo.decode('utf-8')
foo = foo.decode('ansii')
etc..
but no luck.
Thanks for any pointers/help
More information about the Tutor
mailing list