TranslationService and charsets...
Hi zopistas... I can translate a message with... translated = context.translation_service.translate('mydomain', message) But how can I get the charset of the translated message, as the various languages from the associated MessageCatalog may have different charsets (ASCII, ISOxxx,...). Many thanks in advance for any hint. --Gilles
----- Original Message ----- From: "Gilles Lenfant" <gilles@pilotsystems.net> To: <zope@zope.org> Sent: Tuesday, September 30, 2003 10:26 PM Subject: [Zope] TranslationService and charsets...
Hi zopistas...
I can translate a message with...
translated = context.translation_service.translate('mydomain', message)
But how can I get the charset of the translated message, as the various languages from the associated MessageCatalog may have different charsets (ASCII, ISOxxx,...).
Many thanks in advance for any hint.
--Gilles
Found the stuff... It seems to return Unicode whatever's the MessageCatalog charset... --Gilles
On Wednesday, October 1, 2003, at 05:09 AM, Gilles Lenfant wrote:
Found the stuff...
It seems to return Unicode whatever's the MessageCatalog charset...
--Gilles
I was having an issue with this and I am using the Translation Service with Localizer 1.0.1. I am currently only using English and French, but the characters for French are returning in ISO-8859-1 instead of UTF-8. Is there a way to force the character set encoding? Thanks, Calvin -- S i x F e e t U p | "Taking your site to new heights" Silicon Valley: +1 (650) 401-8579 | Midwest: +1 (317) 861-5948 Toll-Free: 1-866-SIX-FEET mailto:calvin@sixfeetup.com http://www.sixfeetup.com | Hosting from $9.95/month
participants (2)
-
Calvin Hendryx-Parker -
Gilles Lenfant