AnsweredAssumed Answered

[SOLVED] UTF-8 encoding problems

Question asked by danizmax on Dec 5, 2008
Latest reply on Dec 9, 2008 by danizmax

I have created a action that is harvesting metadata from other instances over webservice. Anyway i got problems with encoding, when reading XML data:

source = new URL(urlStr);      
in = new BufferedReader(new InputStreamReader(source.openStream(), "UTF-8"));
while ((inputLine = in.readLine()) != null) {
   input += inputLine;

Any specific character like ščćž, displays like "????". Even logger doesn't display these chars correctly if print them in-compiled like:


The strange thing is that Alfresco client handles these chars with no problem.
I tested my code localy as a normal program and it works fine, so is Alfresco configured wrong, or Tomcat?

regards, DAniel