I have embedded gecko in my java application.I load a url and try to
save the document after modification.

When I save the document with japanese or german characters they are
modified.What do I need to do to preserve the characters during save?.

My JVM has file.encoding set to UTF-8.

My nsIWebBrowserPersist saveDocument is as shown
==================================
long encodingFlags = nsIWebBrowserPersist.ENCODE_FLAGS_ABSOLUTE_LINKS|
nsIWebBrowserPersist.ENCODE_FLAGS_RAW|
nsIWebBrowserPersist.ENCODE_FLAGS_ENCODE_W3C_ENTITIES|
nsIWebBrowserPersist.ENCODE_FLAGS_ENCODE_HTML_ENTITIES|
nsIWebBrowserPersist.ENCODE_FLAGS_ENCODE_BASIC_ENTITIES|
nsIWebBrowserPersist.ENCODE_FLAGS_ENCODE_LATIN1_ENTITIES|
nsIWebBrowserPersist.ENCODE_FLAGS_CR_LINEBREAKS|
nsIWebBrowserPersist.ENCODE_FLAGS_LF_LINEBREAKS;

persist.saveDocument(doc,localFile,null,"text/html;
charset=UTF-8",encodingFlags,0);
=======================================

Iam loading the document using openWindow(MYURL. blah blah)

and MYURL is file:////home/guest/a.html

What Iam missing?.Could not get much help on this?


Thanks in Advance,
Krithika

_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to