?
=?ISO-8859-1?Q?B=FClent_=D6ktem?=
hi,
i have problems to write a html file in java with polish characters.
my method "writeContent( String s )" get an String from an XML Transformation.
if i look at the String in the debugger i see the polish characters correct.
but when i write it in a file, java makes '?' for some characters.
i've tried a lot of encodings for my OutputStreamWriter. with no effect.
can anyone help me?
private String encoding = "ISO-8859-2";
FileOutputStream fileOutStream = new FileOutputStream( filename );
OutputStreamWriter outWriter = new OutputStreamWriter( fileOutStream, encoding );
public void writeContent(String s)
{
try
{
outWriter .write(s);
outWriter .flush();
}
catch(Exception exception)
{
e.printStackTrace();
}
}
i have problems to write a html file in java with polish characters.
my method "writeContent( String s )" get an String from an XML Transformation.
if i look at the String in the debugger i see the polish characters correct.
but when i write it in a file, java makes '?' for some characters.
i've tried a lot of encodings for my OutputStreamWriter. with no effect.
can anyone help me?
private String encoding = "ISO-8859-2";
FileOutputStream fileOutStream = new FileOutputStream( filename );
OutputStreamWriter outWriter = new OutputStreamWriter( fileOutStream, encoding );
public void writeContent(String s)
{
try
{
outWriter .write(s);
outWriter .flush();
}
catch(Exception exception)
{
e.printStackTrace();
}
}