Win a copy of Design for the Mind this week in the Design forum!
    Bookmark Topic Watch Topic
  • New Topic

Unicode characters - javax . xml . transform . Transformer

 
Ashish Agrawal
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Report post to moderator
I am using javax.xml.transform.Transformer to convert a Xml String to HTML using a xsl file.
I am getting the following exception --
javax.xml.transform.TransformerException: Character conversion error: "Malformed UTF-8 char -- is an XML encoding declaration missing?" (line number may be too low).

The Xml string (packet) is dynamically generated inside a servlet. It has some Thai language data. I have specifed the encoding type as "UTF-8" for both...xml and xsl. I even tried it without any encoding type.
Can any body help me out?
-- Ashish Agrawal.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Report post to moderator
Yes, I am sure we can help. But I think the XML forum will get you better and faster answers.
I am going to move this thread to that forum.
Good Luck
Mark
Let me rephrase it. Actually you already have a thread for this question in the XML forum, which is the more appropriate forum. So, in that case, this thread is a duplicate thread. So I am just going to close this thread. Please try to refrain from cross-posting questions to multiple forums. Thanks
Mark
 
    Bookmark Topic Watch Topic
  • New Topic