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?
-
I saved the text file from Notepad as Unicode, and that fixes the issue.
-
@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)
http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-demo.txt -
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.
-
-