Popup pages lack Character-Encoding header [FIXED]
Moderator: AniDB
Popup pages lack Character-Encoding header [FIXED]
When a page is opened with the nonav=1 attribute set, there will be neither a Meta line nor a HTTP header controller character encoding. As a result, browsers might, depending on configuration and recently used encodings, autoselect UTF-7 to decode the page, which severely breaks up JavaScripts (since, e.g. "+w+" turns into a Unicode character).
In [url=http://www.anidb.net/forum/viewtopic.php?t=645&start=15&postdays=0&postorder=asc&highlight]Light blue HTML template development (how to improve it?)[/url], Elberet wrote:[A missing "+" in JavaScript-line]
When you tell Mozilla manually to use UTF-7, it will keep that stored and autodetect pages that don't specify a character set as using that encoding type with a very high likelihood. That's what happened here. The + is a UTF-7 excape char, "+ " was decoded into " ". D'oh.
My IE just fell for it... the last (forced) encoding I used was Japanese, so the Popup for "Säck Subbing Team" showed up as:
http://anidb.ath.cx/perl-bin/animedb.pl?show=anime&aid=285&expand=8923#eid_8923 wrote:Name: S臘k Subbing Team
[...]