diff options
author | Pedro Giffuni <pfg@apache.org> | 2011-10-10 23:33:06 +0000 |
---|---|---|
committer | Pedro Giffuni <pfg@apache.org> | 2011-10-10 23:33:06 +0000 |
commit | 66aeb6eea541cb4ba214e69c427f6ddc95002444 (patch) | |
tree | 0e3ab673230ef58e62c0420b86e2b159c7360af5 /svtools | |
parent | 55a1bb47cfc159baa885be42b3d5d25d862e9801 (diff) |
i76649 - sfx2: html parser support for html with missing encoding - minimal patch
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/svhtml/parhtml.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/svtools/source/svhtml/parhtml.cxx b/svtools/source/svhtml/parhtml.cxx index b31f7285b15c..81562be9a205 100644 --- a/svtools/source/svhtml/parhtml.cxx +++ b/svtools/source/svhtml/parhtml.cxx @@ -323,6 +323,9 @@ HTMLParser::HTMLParser( SvStream& rIn, int bReadNewDoc ) bReadComment = sal_False; bIsInHeader = sal_True; pOptions = new HTMLOptions; + + //#i76649, default to UTF-8 for HTML unless we know differently + SetSrcEncoding(RTL_TEXTENCODING_UTF8); } HTMLParser::~HTMLParser() |