Hi,
I am trying to create CSV files with French characters using BeanIO.
When I use the "default" BeanIO writer :
Writer out = factory.createWriter(builderName, new File(filePath);
I get "??" when where there are French characters like é, â, ô etc.
I tried a second method, changing the encoding of writers :
Writer writer = null;
try {
writer = new OutputStreamWriter(new FileOutputStream(new File(filePath)), StandardCharsets.UTF_8);
}
catch (final IOException e) {
throw new RuntimeException("Error during Export file creation : " + filePath);
}
Writer out = factory.createWriter(builderName, writer);
But it is even worse than the first method : I get characters like ��..
Do you have an idea how I should do to make sure to output the right characters?
Thanks in advance,
Boris