svn commit: r706692 - in /ofbiz/trunk: framework/entity/src/org/ofbiz/entity/util/EntitySaxReader.java hot-deploy/

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r706692 - in /ofbiz/trunk: framework/entity/src/org/ofbiz/entity/util/EntitySaxReader.java hot-deploy/

jleroux@apache.org
Author: jleroux
Date: Tue Oct 21 10:56:55 2008
New Revision: 706692

URL: http://svn.apache.org/viewvc?rev=706692&view=rev
Log:
A patch patch from Marco Risaliti " Error parsing entity xml file: java.io.CharConversionException: Invalid UTF-8 Encoding" (https://issues.apache.org/jira/browse/OFBIZ-1957) - OFBIZ-1957

Modified:
    ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntitySaxReader.java
    ofbiz/trunk/hot-deploy/   (props changed)

Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntitySaxReader.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntitySaxReader.java?rev=706692&r1=706691&r2=706692&view=diff
==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntitySaxReader.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntitySaxReader.java Tue Oct 21 10:56:55 2008
@@ -204,7 +204,7 @@
             Debug.logWarning("content was null, doing nothing", module);
             return 0;
         }
-        ByteArrayInputStream bis = new ByteArrayInputStream(content.getBytes());
+        ByteArrayInputStream bis = new ByteArrayInputStream(content.getBytes("UTF-8"));
 
         return this.parse(bis, "Internal Content");
     }

Propchange: ofbiz/trunk/hot-deploy/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Tue Oct 21 10:56:55 2008
@@ -0,0 +1 @@
+hello3