Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unicode Problem in Struts using dom4j for xml parsing

 
Ranveer K Kumar
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am facing problem related to UTF-8.
I am using dom4j for generating xml in struts 1.3.

My xml document carry some non English character (Hindi).
Now the problem is when I am generating xml using dom4j in core java. Then Hindi character is coming.
But when using with struts then becoming junk (like : ???).
The problem I am unable to understand.
my environment is following:
OS : windows 7
IDE : Eclipse
java version : 1.6
Struts version : 1.3

I am using servlet filter to encode the request to UTF-8.

Same code is working while using in core java (using main method).
please help.

Ranveer K Kumar

Thank
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic