Hi,
I have the following problem. I am working with Xojo 2019 3.1 Windows.
I would like to create a CSV file with Xojo. When I open them in the text editor, the special characters are OK. If I open them with Excel 2019, the special characters are not OK. See pictures.
What am I doing wrong?
[code]Dim file As FolderItem = new FolderItem(“C:\tmp\BAB.csv” , FolderItem.PathTypeNative)
Dim fileStream As TextOutputStream
If file <> Nil Then
dim BA as string = “101020”
dim ArtikelNr as string = “banoio® FZK”
Every IO needs its strings encoded properly. You need to check and test for the matching one. In your case it could be ASCII and/or Windows ISO Latin 1. Please check XOJO documentation
Not sure if that applies to your problem as you are under Windows. But Excel 2019 on the Mac is able to open and import a CSV file with the following properties flawlessly:
Field separator depends on OS UI language: For German it is ;, for English ,
UTF8 with BOM (this is not supported in older versions like Excel 2011. For this use MacRoman)
where necessary, quote field with "
Line/Record ending CRLF
Line endings within fields / cells LF and of course quoted