Appearance of HTML files
Have multiple websites written in HTML which have always functioned well. EX: uscourt.com; medical-malpractice.com Now when opened with Firefox (not with other browsers), multiple aaaaxxx appear in front of many lines in text. Cannot get rid of such. Screenshot attached. Please advise. Thank you. Judge Rein JudgeRein@uscourt.com
All Replies (2)
That is a complicated problem with non-breakable spaces ( U+00A0). If I check "Tools -> Page Info -> General" then it shows the encoding as IBM866 and in this encoding 0xA0 is a Cyrillic 'а' (0x0430). I'm not sure what makes Firefox think that the page is IBM866 encoding.
- https://en.wikipedia.org/wiki/Code_page_866#Character_set
- https://en.wikibooks.org/wiki/Unicode/Character_reference/0000-0FFF
Firefox 68 uses windows-1252 and in this encoding 0xA0 is NBSP.
What code do you use on those pages ?
The web console shows this message:
The character encoding of the document was not declared, and the encoding was guessable from content only late. This caused the document to be reloaded. The character encoding needs to be declared in the Content-Type HTTP header, using a meta tag, or using a byte order mark.
So you need to make sure to specify an encoding (content-type: text/html; charset=windows-1252).