Hello Gog (Gang of Geeks),
I'm writing a python script that is supposed to get some information
off a hebrew website having this in it's headers...

<META HTTP-EQUIV=3D"Content-Type" content=3D"text/html; charset=3Dwindows-1=
255">

and=20

<style>
          select{font-family:arial;font-size:13px}
       input{font-family:arial;font-size:13px}
       body{font-family:arial;font -size:13px}
       table{font-family:arial;font-size:13px}
       a{font-family:arial;text-decoration:'underline' ;
color:'#000044';text-decoration: none}
       a:hover{font-family:arial;color:'#FF0033';text-decoration: none}
       a:active{font-family:arial;color:'#660000';
text-decoration:'underline';}
=09   #pptw{position:absolute;top:-20px;left:0px;}
</style>

I'm connecting through urllib2.urlopen and using htmllib.HTMLParser to pars=
e it.
I get a garbled output when I view the result.
Now I'm pretty weak on the why but I know I want to store my results
in utf8 because it's pretty much what everyone (mysql) uses to be
overpass these types of problems.
It there a way I can cast/transform encodings?

regards

Peace Love and Penguins -
Lior Kesos
-- 
Lior Kesos  -  [EMAIL PROTECTED]
Content Development Team Leader
==============================
"Everything should be made as simple as possible -
but not simpler" -- Albert Einstein 


לענות