[Tutor] encoding text in html

Kent Johnson kent37 at tds.net
Wed Sep 13 11:59:02 CEST 2006


anil maran wrote:
> 
> 「ひぐらしのなく頃に」30秒TVCF風ver.0.1 <http://youtube.com/?v=0WmeTRcAiec>
> 
> this is how it is getting displayed in browser

I'm pretty sure that is not how
    We\xe2\x80\x99re
displays; can you show an example of the same text as it is stored and 
as it displays?

Kent

> 
> ----- Original Message ----
> From: anil maran <anilmrn at yahoo.com>
> To: anil maran <anilmrn at yahoo.com>
> Sent: Wednesday, September 13, 2006 2:07:55 AM
> Subject: Re: [Tutor] encoding text in html
> 
> 
> 
> 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: [Tutor] 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
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor




More information about the Tutor mailing list