Kaydet (Commit) 0d5ef23d authored tarafından Caolán McNamara's avatar Caolán McNamara

default to UTF8 for html encoding

üst b1091fa9
...@@ -80,15 +80,12 @@ SfxHTMLParser::SfxHTMLParser( SvStream& rStream, sal_Bool bIsNewDoc, ...@@ -80,15 +80,12 @@ SfxHTMLParser::SfxHTMLParser( SvStream& rStream, sal_Bool bIsNewDoc,
pMedium( pMed ), pDLMedium( 0 ), pMedium( pMed ), pDLMedium( 0 ),
nMetaTags( 0 ) nMetaTags( 0 )
{ {
DBG_ASSERT( RTL_TEXTENCODING_DONTKNOW == GetSrcEncoding( ), DBG_ASSERT( RTL_TEXTENCODING_UTF8 == GetSrcEncoding( ),
"SfxHTMLParser::SfxHTMLParser: From where comes ZS?" ); "SfxHTMLParser::SfxHTMLParser: From where comes ZS?" );
DBG_ASSERT( !IsSwitchToUCS2(), DBG_ASSERT( !IsSwitchToUCS2(),
"SfxHTMLParser::SfxHTMLParser: Switch to UCS2?" ); "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. // If the file starts with a BOM, switch to UCS2.
SetSwitchToUCS2( sal_True ); SetSwitchToUCS2( sal_True );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment