[Tutor] encoding text in html

2006-09-13 Thread anil maran

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@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] encoding text in html

2006-09-13 Thread anil maran
submits: We\xe2\x80\x99re pretty surthis is how it is stored in postgresplease help me outthanks- Original Message From: anil maran [EMAIL PROTECTED]To: tutor@python.orgSent: Wednesday, September 13, 2006 12:14:10 AMSubject: 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@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] encoding text in html

2006-09-13 Thread anil maran

		  
	


「ひぐらしのなく頃に」30秒TVCF風ver.0.1 this is how it is getting displayed in browser- Original Message From: anil maran [EMAIL PROTECTED]To: anil maran [EMAIL PROTECTED]Sent: Wednesday, September 13, 2006 2:07:55 AMSubject: Re: [Tutor] encoding text in htmlsubmits: We\xe2\x80\x99re pretty surthis is how it is stored in postgresplease help me outthanks- Original Message From: anil maran [EMAIL PROTECTED]To: tutor@python.orgSent: Wednesday,
 September 13, 2006 12:14:10 AMSubject: [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@python.orghttp://mail.python.org/mailman/listinfo/tutor___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] encoding text in html

2006-09-13 Thread Kent Johnson
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 [EMAIL PROTECTED]
 To: anil maran [EMAIL PROTECTED]
 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 [EMAIL PROTECTED]
 To: tutor@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@python.org
 http://mail.python.org/mailman/listinfo/tutor
 
 
 
 
 
 ___
 Tutor maillist  -  Tutor@python.org
 http://mail.python.org/mailman/listinfo/tutor


___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] encoding text in html

2006-09-13 Thread Kent Johnson
anil maran wrote:
 
 
 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

Do you have the page encoding set to utf-8 in Firefox? You can do this
with View / Character Encoding as a test. If it displays correctly when
you set the encoding then you should include a meta tag in the HTML that
sets the charset. Put this in the head of the HTML:
   meta http-equiv=content-type content=text/html; charset=utf-8 /

Kent


___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] encoding text in html

2006-09-13 Thread Danny Yoo


On Wed, 13 Sep 2006, anil maran wrote:


 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__

I'm assuming that you're dynamically generating some HTML document.  If 
so, have you declared the document encoding in the HTML file to be 
utf-8?

See:

 http://www.joelonsoftware.com/articles/Unicode.html

Do you have a small sample of the HTML file that's being generated?  One 
of us here may want to inspect it to make sure you really are generating 
UTF-8 output.  You may also want to show the Python code you've written to 
generate the output.

Try to give us enough information so we can attempt to reproduce what 
you're seeing.

Good luck!
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor