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

2006/unicorn/src/org/w3c/unicorn UnicornCall.java,1.1.2.3,1.1.2.4

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Fri, 21 Aug 2009 14:52:04 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1MeVTI-0004pY-5L@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn
In directory hutz:/tmp/cvs-serv18554/src/org/w3c/unicorn

Modified Files:
      Tag: dev2
	UnicornCall.java 
Log Message:
changed getBytes() to getBytes("UTF-8") (now works on windows)

Index: UnicornCall.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/Attic/UnicornCall.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
--- UnicornCall.java	17 Aug 2009 09:00:14 -0000	1.1.2.3
+++ UnicornCall.java	21 Aug 2009 14:52:02 -0000	1.1.2.4
@@ -705,7 +705,7 @@
 				DocumentBuilder builder = xmlFact.newDocumentBuilder();
 
 				Document doc = builder.parse(new java.io.ByteArrayInputStream(
-						xmlStr.getBytes()));
+						xmlStr.getBytes("UTF-8")));
 
 				String xpathStr = cond.getValue();
 
Received on Friday, 21 August 2009 14:52:13 UTC

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