-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------

i have had many problems to display Korean-characters with java.

"i should use"

out = new PrintWriter(new OutputStreamWriter(new
FileOutputStream(filename,true),"KSC5601")); // write to a file (KSC5601
is character encoding for Korean)

"instead using"

out = new BufferedWriter(new FileWriter(filename,true));

"to correctly display our language."

when i looked api reference for FileWriter class,

"The constructors of this class assume that the default character
encoding and the default byte-buffer size are acceptable. To specify
these values yourself, construct an OutputStreamWriter on a
FileOutputStream."

where can i set default character encoding ? not specify everytime i use
it !! anybody knows it ?

--mskang


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to