SaveAs HTML and charset

L

Lokutus

Hi.
In Lotus Notes I have a server side script that generates (using OLE) a
Word file from template. After creating a .doc file I call

Call ActiveDocument.SaveAs(FileName, wdFormatHTML, False,,,,,,,,,
msoEncodingUTF8)

The result is .htm file, encoded as UTF-8. That's OK. But in source of
this page still remains following declaration:

<meta http-equiv=Content-Type content="text/html;
charset=windows-1250">

This declaration causes problems with fonts. If I remove this
declaration, everything is OK. But I don't want to check every line
while streaming the whole HTML page on server to remove one stupid
line.

Is there a way to declare content of the Word file as UTF-8 to avoid
problems with META element?

Notice: I need UTF-8, because Domino server sends stream as UTF-8.

Thanks in advance. Jiri
 
J

Jean-Guy Marcil

Lokutus was telling us:
Lokutus nous racontait que :
Hi.
In Lotus Notes I have a server side script that generates (using OLE)
a Word file from template. After creating a .doc file I call

Call ActiveDocument.SaveAs(FileName, wdFormatHTML, False,,,,,,,,,
msoEncodingUTF8)

The result is .htm file, encoded as UTF-8. That's OK. But in source of
this page still remains following declaration:

<meta http-equiv=Content-Type content="text/html;
charset=windows-1250">

This declaration causes problems with fonts. If I remove this
declaration, everything is OK. But I don't want to check every line
while streaming the whole HTML page on server to remove one stupid
line.

Is there a way to declare content of the Word file as UTF-8 to avoid
problems with META element?

Notice: I need UTF-8, because Domino server sends stream as UTF-8.

Why don't you do a Find/Replace to remove the undesired string of text?

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top