PGWelch / com.opendoorlogistics

http://www.opendoorlogistics.com
GNU Lesser General Public License v3.0
80 stars 45 forks source link

Character encoding in .odlx file #37

Open PGWelch opened 8 years ago

PGWelch commented 8 years ago

Changing an option in the jsprit.odlx file to have 'special' characters - e.g. Näytä kartta (Show map in Finnish), results in the .odlx file not being loadable. The error "Invalid byte 2 of 3-byte UTF-8 sequence " is thrown when loading the XML file (an odlx file is XML). See here http://stackoverflow.com/questions/2421272/invalid-byte-2-of-2-byte-utf-8-sequence

A workaround may be explicitly setting a different character encoding (e.g. not UTF-8) at the start of the .odlx XML file (to test).