L
Lukasz
Hi,
In my application I create some files and I write some text into. I
want to use UTF-8 encoding, but both methods that I tried seem to
ignore specified encoding. I used:
OutputStream fout= new FileOutputStream(nazwa);
OutputStream bout= new BufferedOutputStream(fout);
OutputStreamWriter out = new OutputStreamWriter(bout, "UTF8");
and
BufferedWriter out = new BufferedWriter(new OutputStreamWriter(new
FileOutputStream(nazwa),"UTF8"));
The problem seems to be simple, but often it is hard to find an answer
for a most simple question.
In my application I create some files and I write some text into. I
want to use UTF-8 encoding, but both methods that I tried seem to
ignore specified encoding. I used:
OutputStream fout= new FileOutputStream(nazwa);
OutputStream bout= new BufferedOutputStream(fout);
OutputStreamWriter out = new OutputStreamWriter(bout, "UTF8");
and
BufferedWriter out = new BufferedWriter(new OutputStreamWriter(new
FileOutputStream(nazwa),"UTF8"));
The problem seems to be simple, but often it is hard to find an answer
for a most simple question.