Genii Weblog

Midas Tip #1: Inserting foreign language text before HTML generation

Mon 10 Sep 2007, 10:03 AM

by Ben Langhinrichs
A question came up with a customer who was trying to export e-mails to HTML.  The rich text was exported without any difficulty, but the customer wanted to include the subject, but not render the whole form.  They tried first by simply adding to the generated HTML, but their Arabic and Turkish content didn't get translated if they added to the HTML.  My first guess was that they should use the OpeningBody= parameter, or something similar, but of course those have the same issue.

Instead, the easiest and cleanest answer is to insert whatever you want generated with the HTML into the rich text before generating.  You don't have to save it, so you don't need to worry about changing the original message, but this allows the HTML generation engine to optimize the content and translate everything into the appropriate character set.  I have used this technique before, in the Help DB for example, to add a table inside the generated HTML, but I had forgotten about this technique for foreign language insertion.

Copyright 2007 Genii Software Ltd.

What has been said:

No documents found