diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-04-13 15:12:21 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-04-13 15:12:21 +0100 |
commit | 0d5ef23df07806599e64350f67651a8ee6ad2ef2 (patch) | |
tree | 019b43e045bcf08913e4965f86cc28a6b5b59f40 | |
parent | b1091fa9d8e40e34876faf9471dab99dc3e64ff3 (diff) |
default to UTF8 for html encoding
-rw-r--r-- | sfx2/source/bastyp/sfxhtml.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sfx2/source/bastyp/sfxhtml.cxx b/sfx2/source/bastyp/sfxhtml.cxx index ce3b19725727..ede1f873d6bc 100644 --- a/sfx2/source/bastyp/sfxhtml.cxx +++ b/sfx2/source/bastyp/sfxhtml.cxx @@ -80,15 +80,12 @@ SfxHTMLParser::SfxHTMLParser( SvStream& rStream, sal_Bool bIsNewDoc, pMedium( pMed ), pDLMedium( 0 ), nMetaTags( 0 ) { - DBG_ASSERT( RTL_TEXTENCODING_DONTKNOW == GetSrcEncoding( ), + DBG_ASSERT( RTL_TEXTENCODING_UTF8 == GetSrcEncoding( ), "SfxHTMLParser::SfxHTMLParser: From where comes ZS?" ); + DBG_ASSERT( !IsSwitchToUCS2(), "SfxHTMLParser::SfxHTMLParser: Switch to UCS2?" ); - // Altough the real default encoding is ISO8859-1, we use MS-1252 - // as default encoding. - SetSrcEncoding( GetExtendedCompatibilityTextEncoding( RTL_TEXTENCODING_ISO_8859_1 ) ); - // If the file starts with a BOM, switch to UCS2. SetSwitchToUCS2( sal_True ); } |