summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-10-01 10:00:52 +0100
committerCaolán McNamara <caolanm@redhat.com>2010-10-01 10:00:52 +0100
commit0c4a6d3b16077c01c9dc92ea55f2dace8955a815 (patch)
treec808d3ead0d97c873c9e79f8aa9992a5b761a4a8 /svtools
parent948df2541ff57b20b854400a499c021e20aa8c53 (diff)
#i76649#, default to UTF-8 for HTML unless we know differently
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/svhtml/parhtml.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/svtools/source/svhtml/parhtml.cxx b/svtools/source/svhtml/parhtml.cxx
index ade58688dc55..3c65997bedca 100644
--- a/svtools/source/svhtml/parhtml.cxx
+++ b/svtools/source/svhtml/parhtml.cxx
@@ -323,6 +323,9 @@ HTMLParser::HTMLParser( SvStream& rIn, int bReadNewDoc )
bReadComment = FALSE;
bIsInHeader = TRUE;
pOptions = new HTMLOptions;
+
+ //#i76649, default to UTF-8 for HTML unless we know differently
+ SetSrcEncoding(RTL_TEXTENCODING_UTF8);
}
HTMLParser::~HTMLParser()