encoding problem

Hi!all.....

I used a servlet to read the request as Stirng str=request.getParameter(field name), and then write the str into a FileWriter, everything is okay, but when I open the file I created. I found all of my str become "?.?.?". Because I used Big-5(Tranditional Chinese)be my value, but I have set my containtype(such as contentType="text/html;charset=Big5"), I dont know what's happen!!!

I wanna know 2 things:

first: what do I lose in the part of char encoding?

second: FileWriter can't work well in Big-5?

thanx for your reading, best regard!!!

[591 byte] By [s88a] at [2007-9-19]
# 1
i am having a similar problem.Did u find a solution.Thanx
vincmaca at 2007-7-8 > top of java,Enterprise & Remote Computing,Web Tier APIs...
# 2

Hi!

Is the output really filled with '?' or is your console only displaying '?' ?

Perhaps you may have a look at my reply to

http://forum.java.sun.com/thread.jsp?forum=33&thread=274142

which works. Maybe you will have some settings where to set those encodings.

Regards,

Harrz

harrza at 2007-7-8 > top of java,Enterprise & Remote Computing,Web Tier APIs...