javaapache-camelbindy

Apache Camel's Bindy with CsvRecord doesn't handle special unicode characters like ®


I'm using Apache Camel 2.17.1 to process a CSV file and I'm using Bindy in conjunction with CsvRecord to parse the file and unmarshal each line into a POJO.

The issue I'm facing is that some of the fields in the file have special unicode characters like "Blah ®" and these are not being parsed correctly -- instead, the String field will end up holding "Blah �" instead...

Is this a known bug and/or is there some workaround or configuration I can specify to enable these characters to be handled correctly as unicode characters?

Thanks in advance!


Solution

  • Check your input file format. Change charset to UTF-8 and try again.