5
4

2 回答 2

2

Rupesh, you are treating UTF-8 encoded data as signle-byte coded data or encoding UTF-8 twice. (the

out.toString("UTF-8") 

???)

First step is to figure out, what encoding is your data in and what encoding are you supposed to produce. For instance if you use Notepad++, it has a menu "Encoding" where it shows you the current encoding of the file and allows you to change it, see the effect. Tell us what's the story.

You might be after the western european windows ecoding: windows-1252

Check this as well: the encoding attribute of the XSL output element

I could give you some sample in C# if you like, but you run Java...

于 2013-01-10T14:38:27.727 回答
0

Thanks for adding the code. In your Java code, could you try changing the two places where you have "UTF-8" to instead be "UTF8" (no hyphen)? I think I have seen this issue before.

于 2013-01-10T07:22:42.760 回答