I'm using the CsvProvider on a csv File generated out of an Excel. The csv file contains some specific German characters ('ä', 'ö', ...) that are not read correctly.
I tryied with the Encoding parameter, used a stream with UTF8 Encoding, saved the Excel file as ".csv", ".csv" in MS-DOS Format, ... But, the result was always the same.
Here a reduced code sample:
open FSharp.Data
type MyCsvProvider = CsvProvider<"Mappe1.csv",Separators=";">
[<EntryPoint>]
let main argv =
let csvDatas = MyCsvProvider.Load("..\..\Mappe1.csv")
for i in csvDatas.Rows do
printfn "Read: Beispiel='%s' and Änderungsjahr='%d" i.Beispiel i.``�nderungsjahr``
0
Here the corresponding CsvFile:
Beispiel;Änderungsjahr
Data1;2000
Überlegung;2010
And here the result after execution:
Read: Beispiel='Data1' and Änderungsjahr='2000
Read: Beispiel='?berlegung' and Änderungsjahr='2010