W3C home > Mailing lists > Public > www-validator-cvs@w3.org > August 2009

2006/unicorn/src/org/w3c/unicorn/response/parser DefaultParser.java,1.1.2.3,1.1.2.4

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Wed, 26 Aug 2009 17:26:48 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1MgMGm-0007DE-OA@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/response/parser
In directory hutz:/tmp/cvs-serv27710/src/org/w3c/unicorn/response/parser

Modified Files:
      Tag: dev2
	DefaultParser.java 
Log Message:
specifies encoding before parsing

Index: DefaultParser.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/response/parser/Attic/DefaultParser.java,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -u -d -r1.1.2.3 -r1.1.2.4
--- DefaultParser.java	25 Aug 2009 08:49:48 -0000	1.1.2.3
+++ DefaultParser.java	26 Aug 2009 17:26:46 -0000	1.1.2.4
@@ -14,6 +14,7 @@
 import org.apache.commons.logging.LogFactory;
 import org.apache.xmlbeans.XmlCursor;
 import org.apache.xmlbeans.XmlObject;
+import org.apache.xmlbeans.XmlOptions;
 import org.apache.xmlbeans.impl.values.XmlValueOutOfRangeException;
 import org.w3.unicorn.observationresponse.ObservationresponseDocument;
 import org.w3.unicorn.observationresponse.ObservationresponseDocument.Observationresponse;
@@ -47,6 +48,9 @@
 	public Response parse(String r) {
 
 		try {
+			/*XmlOptions opts = new XmlOptions();
+			opts.setCharacterEncoding("UTF-8");*/
+			
 			org.w3.unicorn.observationresponse.ObservationresponseDocument ord = org.w3.unicorn.observationresponse.ObservationresponseDocument.Factory
 					.parse(r);
 			return swap(ord);
Received on Wednesday, 26 August 2009 17:26:58 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:38 UTC