[Tutor] encoding text in html
anil maran
anilmrn at yahoo.com
Wed Sep 13 11:08:45 CEST 2006
submits: We\xe2\x80\x99re pretty sur
this is how it is stored in postgres
please help me out
thanks
----- Original Message ----
From: anil maran <anilmrn at yahoo.com>
To: tutor at python.org
Sent: Wednesday, September 13, 2006 12:14:10 AM
Subject: encoding text in html
i was trying to display some text
it is in utf-8 in postgres and when it is displayed in firefox and ie, it gets displayed as some symols with 4numbers in a box or so
even for ' apostrophe
please tell me how to display this properly
i try
title.__str__
or title.__repr__
both dont work
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20060913/f58c9b8b/attachment.html
More information about the Tutor
mailing list