Re: Vietnamese charater displayed not correctly!
Andreas Jung <[email protected]>
| Newsgroups | gmane.comp.web.zope.database |
|---|---|
| Message-ID | <[email protected]> |
--On 10. August 2006 06:31:04 +0200 Andreas Jung <[email protected]> wrote: > > > --On 10. August 2006 10:04:58 +0700 NGUYEN HUU DINH > <[email protected]> wrote: > >> Hi, >> >> I used mxodbc connected to MSSQL Server to get vietnamese data and >> displayed it in portlets. But vietnamese characters displayed not >> correctly, question mark appeared!!! I've set the encoding to utf-8 but I >> don't know why. > > Which encoding? > > *You* must ensure that you receive your data from database as Python > Unicode strings or UTF-8. If your database encoding is XXXX you *can't* > expect that the data will be shown correctly. > In addition you must ensure that the HTML page is sent out with a content-type: text/html; charset=utf-8 HTTP header. You RESPONSE.setHeader() to set the header. -aj _______________________________________________ Zope-DB mailing list [email protected] http://mail.zope.org/mailman/listinfo/zope-db
signature.asc
(application/pgp-signature, 186 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) iD8DBQFE2re5CJIWIbr9KYwRAqU0AKDDqbUovV484/UNyZHs4xHrpq9VYwCg1RLD R6jrsFdawUQzGxCUcLxXxBw= =o381 -----END PGP SIGNATURE-----