Text File Encoding Not Supported?
This text file is not displayed correctly in Vivaldi due to some encoding issue. Other browsers (Firefox, Opera 43, and IE11) do the same so I guess it's not a bug, but why can't Vivaldi do better?
The server sends the text file content as UTF-8.
But the downloaded text file is really Windows-1252.
Guess whats wrong?
I saved the text file from Notepad as Unicode, and that fixes the issue.
iAN CooG last edited by iAN CooG
@Pesala that one is a plain Ascii file with no header indicating it should be decoded in any different way. Every byte count as 1 char in other words, if you want it to be encoded as unicode, it should have 0xFF 0xFE as first bytes, try resaving it with wordpad as unicode text. Other wise utf8 chars should be used, this one is displayed correctly (more or less)
kumiponi last edited by kumiponi
It's best to set the Content-Type header correctly in the web server when serving text files. For example, Firefox, to this day, uses Latin-1 as the default fall-back encoding when it shows a text file that could be either in UTF-8 or Latin-1 and there are no other clues (such as a the byte order mark) as to what is the real encoding.