Pergunta

I'm currently trying to solve the problem when I need to load rows from the file and then sort them in the right order.

If I manually assign lettes to the array of wint_t and then sort them, everything from just fine with any encoding http://pastebin.com/85eycH15.

But if I read the very same letters from file and then try to sort them it works just with one encoding (cs_CZ.utf8) and with the rest of them it doesn't read the letters properly or or just skip them http://pastebin.com/3C8r9W5T.

I highly appreciate any help.

Foi útil?

Solução

I assume that the only encoding with which you get your expected result is the one used for your data file. Re-encode the data file in another encoding, you'll get your expected result for the new encoding and not others.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top