1,881 karma · joined Mar 10, 2011 (15y ago) · 533 submissions
comment 4y ago · link · parent
comment 4y ago · link · parent
When you claim that something isn’t working for you (and it’s completely plausible that you have encountered a case where chardetng doesn’t work for you), it would be polite to post the actual failure and not something that’s not an actual example of failure.
comment 4y ago · link · parent
comment 4y ago · link · parent
As it happens, part of what made the menu back end cause other changes to take more effort than they should have taken on their face were the security aspects of the menu in Firefox.
Try https://hsivonen.com/test/moz/never-show-user-supplied-conte... in Firefox 90 (which had the menu) and in another browser that has a menu or an extension that adds a menu.
comment 4y ago · link · parent
If there's more elaborate UI surface in order to address Latin-script cases where autodetection fails (I estimate 1% failure rate for Polish), it risks getting the whole thing removed completely even for Japanese users (as happened with the hamburger menu entry point in Firefox when the hamburger menu was rewritten, as happened in Chrome previously, and as happened with Safari for iOS in the sense of the menu never making it to iOS).
comment 4y ago · link · parent
As it happens, the primary reason why the single menu item remains instead of an override being totally gone is usage in Japan. (Many people in this thread comment as if Firefox had done what Chrome did: complete removal of override as you note.) The remaining menu item is pretty accurate for its primary use case, which is dealing with Japanese legacy sites that misdeclare their encoding. (There is one exception: If the page declares UTF-8 but is actually ISO-2022-JP, then you don't have recourse.)
comment 4y ago · link · parent
The collapsing the submenu of the View menu into a single item shipped in Firefox 91. The submenu was removed from the hamburger menu in Firefox 89.
This order of changes was unfortunate. If I had gotten the single-item design done sooner, perhaps the rewritten hamburger menu would have kept the single item instead of removing the entry point altogether.
comment 5y ago · link · parent
comment 5y ago · link · parent
Firefox no longer updates its MSRV in sync with Rust release trains. I’d be happy to remove this particular RUSTC_BOOTSTRAP if we decided to increase Firefox’s MSRV (currently stuck at 1.47.0).
comment 5y ago · link · parent
For file: URLs, Firefox and, a bit less reliably, Chrome do work out that an HTML file is UTF-8. Safari does not.
> And since utf-8 is the only valid charset for HTML5
Correct.
> it should be the default.
It isn't. See https://hsivonen.fi/utf-8-detection/ for why.
Having <meta charset="UTF-8"> in the boilerplate is good advice.
comment 5y ago · link · parent
This is news to me. I thought the main advantage of iTunes compared to other services was that purchases would last as long as the iTunes service is operational and that iTunes has outlived “purchase with DRM” services so far. Are there concrete examples?
20.
Chardetng: A More Compact Character Encoding Detector for the Legacy Web(hsivonen.fi ↗)
63 points · by hsivonen · 6y ago · 4 comments
comment 6y ago · link · parent
comment 6y ago · link · parent
comment 6y ago · link · parent
Self-hosting a Japanese font for one line of text is completely doable. I self-host all fonts for my site, which has a handful of CJK characters (across 4 fonts: Korean, Japanese, Traditional Chinese, and Simplified Chinese).
29.
IME Smoke Testing(hsivonen.fi ↗)
7 points · by hsivonen · 6y ago · discuss