Closed rochaporto closed 9 years ago
export LANG="fr_FR.ISO-8859" (or setting encoding in the terminal window):
./ezgliding flight-get -id 666
09/03/2015,PRAT Helene,Arcus M,D-KRHP
netcoupe,Hélène PRAT,+ de 25 ans,A. vélivole Commingeoise,France,Midi-Pyrénées,471.67,328.12
Using a local file instead of url, changing the encoding also works:
iconv -f ISO-8859-1 -t UTF-8 t/Results/FlightDetail.aspx\?FlightID\=2 > t/Results/FlightDetail.aspx\?FlightID\=2a
mv t/Results/FlightDetail.aspx\?FlightID\=2a t/Results/FlightDetail.aspx\?FlightID\=2
Need to find out how to force encoding to ISO-8859 in this case in golang: http://blog.golang.org/strings
Example of netcoupe.net parsing failure (Name, Category, Club, Region).
Happening when name/club/region/etc have accents.