You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.
Facing an issue with accent Letters in Spanish with BufferedWriter & CsvWriter:
for some reason when I try to write some letters they are being changed for unclear reason
this string:
SİSTA+UNİVERSAL+SİLİKON+&pace&ar
converted into:
SÄ°STA+UNÄ°VERSAL+SÄ°LÄ°KON+&pace&ar
I believe That is not the expected behavior.
The İ is converted into Ä°
As you can see I set the encoding in the example.
public static void main(String[] args) throws IOException {
Writer writer = new FileWriterWithEncoding("c:/temp/xzyz.csv", "UTF8");
String arr[] = {"SİSTA+UNİVERSAL+SİLİKON+&pace&ar"};
BufferedWriter bufferedWriter = new BufferedWriter(writer);
CSVWriter csvWriter = new CSVWriter(bufferedWriter);
csvWriter.writeNext(arr);
csvWriter.close();
}
Facing an issue with accent Letters in Spanish with BufferedWriter & CsvWriter:
for some reason when I try to write some letters they are being changed for unclear reason
this string:
SİSTA+UNİVERSAL+SİLİKON+&pace&ar
converted into:
SÄ°STA+UNÄ°VERSAL+SÄ°LÄ°KON+&pace&ar
I believe That is not the expected behavior.
The İ is converted into Ä°
As you can see I set the encoding in the example.
I used Office Excell to open the generated file.
This is the result
https://imgur.com/3w1wbR8
The text was updated successfully, but these errors were encountered: