incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p..@apache.org
Subject svn commit: r1181314 - /incubator/ooo/trunk/main/svtools/source/svhtml/parhtml.cxx
Date Tue, 11 Oct 2011 00:33:07 GMT
Author: pfg
Date: Tue Oct 11 00:33:06 2011
New Revision: 1181314

URL: http://svn.apache.org/viewvc?rev=1181314&view=rev
Log:
i76649 - sfx2: html parser support for html with missing encoding - minimal patch

Modified:
    incubator/ooo/trunk/main/svtools/source/svhtml/parhtml.cxx

Modified: incubator/ooo/trunk/main/svtools/source/svhtml/parhtml.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/svtools/source/svhtml/parhtml.cxx?rev=1181314&r1=1181313&r2=1181314&view=diff
==============================================================================
--- incubator/ooo/trunk/main/svtools/source/svhtml/parhtml.cxx (original)
+++ incubator/ooo/trunk/main/svtools/source/svhtml/parhtml.cxx Tue Oct 11 00:33:06 2011
@@ -323,6 +323,9 @@ HTMLParser::HTMLParser( SvStream& rIn, i
 		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()



Mime
View raw message