The SAFBuilder uses the default CsvReader, which defaults to ISO-8851, which for the english language, and some European languages doesn't appear to cause any issue. However, there are other languages where this default isn't sufficient, and causes errors/invalid text.
So, if it encounters UTF-8 text: "Munín Sánchez, Lara M.", it produces invalid text such as:
This is because the input was UTF-8, and SAFBuilder reads it as ISO-8851, causing the error.
To remedy this, we will force SAFBuilder to use UTF-8 all the time. I suppose we could detect the input, but that can complicate things. Let's all stick with UTF-8.
The SAFBuilder uses the default CsvReader, which defaults to ISO-8851, which for the english language, and some European languages doesn't appear to cause any issue. However, there are other languages where this default isn't sufficient, and causes errors/invalid text.
So, if it encounters UTF-8 text:
"Munín Sánchez, Lara M."
, it produces invalid text such as:This is because the input was UTF-8, and SAFBuilder reads it as ISO-8851, causing the error.
To remedy this, we will force SAFBuilder to use UTF-8 all the time. I suppose we could detect the input, but that can complicate things. Let's all stick with UTF-8.