in reply to Re^9: BUG: code blocks don't retain literal formatting -- could they?
in thread BUG: code blocks don't retain literal formatting -- could they?
While the browser can likely convert html entities to binary-streams, I am pretty sure the opposite doesn't happen. Case in point -- here. Why would the browser, browsing a site that identifies itself as windows-1252 interpret user characters as Unicode and convert them into HTML-entities representing the unicode characters?
Second issue on that -- I've never seen any of my browsers do that on any other site. Though they can convert the entities into a binary stream. But again -- why would the browser convert the html entities into UTF-8 encoded Unicode if the website's encoding was directing conversion.
My claim is that for entities above the ASCII range, those entities will be converted into UTF-8 to be display in the browser. Case in point -- pi. It's character code is not in windows-1252. The browser converts the entity to UTF-8 -- not windows 1252, which is why I believe the fix is relatively trivial.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^11: BUG: code blocks don't retain literal formatting -- could they?
by RonW (Parson) on Sep 20, 2016 at 22:50 UTC | |
by perl-diddler (Chaplain) on Sep 21, 2016 at 02:23 UTC | |
by RonW (Parson) on Sep 21, 2016 at 23:02 UTC | |
by Anonymous Monk on Sep 21, 2016 at 23:40 UTC |