Pasted from the python-il list.
-
Thanks Viktorija (vika?) - that provided half of the solution.
The full one is - 
unicode(text,'cp1255').encode('utf-8')
Because the text is encoded in cp1255 it first needs to get decoded by
that and encoded to utf8

regards
Lior.

Viktorija Zaksiene wrote:

>On Tuesday 05 July 2005 08:26, Lior Kesos wrote:
>  
>
>>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?
>>    
>>
>
>You can use unicode command for this:
>
>string = unicode(string, 'utf-8')
>
>Regards,
>Viktorija
>  
>


On 7/5/05, Arik Baratz <[EMAIL PROTECTED]> wrote:
> 


-- 
Peace Love and Penguins -
Lior Kesos

================================================================To unsubscribe, 
send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to