Ben Langhinrichs

Photograph of Ben Langhinrichs

E-mail address - Ben Langhinrichs







Recent posts

Mon 21 Jun 2021

Custom Domino Extensions presentation



Thu 10 Jun 2021

Notes 12 without all the blue



Wed 5 May 2021

Pull public data into Notes on the fly


January, 2022
SMTWTFS
      01
02 03 04 05 06 07 08
09 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31

Search the weblog





























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