As far as I know, Excel use UTF-16 to represent string literals. I read from a console (Mac) / file (Windows), and in both cases the character encoding is messed up. I have to find a solution which works on both platforms, so ADO stream is not an option. I made some debugging and I see that actual bytes are:
Bytes | Displayed as | Should be | Correct byte 258,129 | Ă | Á | 193 258,356 | ĂŤ | Í | 205 313,176 | Ű | Ű | 219 313,144 | Ĺ | Ő | 213 258,347 | Ăś | Ü | 220 258,8211 | Ă– | Ö | 214 258,353 | Ăš | Ú | 218 258,8220 | Ă“ | Ó | 211 258,8240 | É | É | 201
(Comes from the good-old hungarian test-phrase, ÁRVÍZTŰRŐ TÜKÖRFÚRÓGÉP which contains all of our special characters). I am looking for an algorithm which results in the correct string both on Mac and Windows. Thanks!