Serdar Tumgoren wrote: > I just ran into a glitch that got me wondering about the proper > encoding to use when outputting data for non-technical folks. > > I took pains to ensure that I converted a number of XML feeds to UTF-8 > prior to storage in a database. And then, when pulling the feed data > from a database to generate an HTML file, I once again was careful to > write the data to the HTML file using UTF-8. > > The problem I stumbled into is that when I used UTF-8, several > characters showed up as gobbledygook in my Firefox browser. > Specifically, the characters "\u201c" and "\u201d" (quote marks) were > not carrying over.
I guess you forgot to output a <meta> tag that defines the content-type of the page. http://www.w3.org/International/O-charset Stefan _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor