#12690 closed bug (fixed)
Minimum JS File Contains non-ASCII Charactor
Reported by: | Owned by: | dmethvin | |
---|---|---|---|
Priority: | blocker | Milestone: | 1.8.3 |
Component: | core | Version: | 1.8.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
The jquery.1.8.1.min.js file contains two non-ASCII charactor. This makes IE7 fail to load the script, if html-page's charset is not UTF-8 and include jquery.js without charset attribute.
for(var i = 0; i < s.length; i++){if(s.charCodeAt(i)>127) console.log(i,s.charCodeAt(i), s.charAt(i))}
result:
14587 65279 "" 14588 160 " "
Change History (5)
comment:1 follow-up: 5 Changed 10 years ago by
Component: | unfiled → core |
---|---|
Milestone: | None → 1.8.3 |
Owner: | set to dmethvin |
Priority: | undecided → blocker |
Status: | new → assigned |
comment:2 Changed 10 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Fix #12690. Avoid use of UTF-8 chars in final files.
Changeset: a60fed4dec85e7b0c3b6fc5741b14cee1552afc4
comment:4 Changed 9 years ago by
Dear,
We have stable code on our application with v1.8.2, but this issue happens in IE6. Is it possible to fix this issue by ourselves on current v1.8.2-min?
comment:5 Changed 9 years ago by
Dear dmethvin,
We meet this issue on current application, but it's big risk to upgrade our jquery to 1.8.3. Could you please share any idea to fix this issue on 1.8.2-min on current version?
Thanks
Replying to dmethvin:
Confirmed, and also in 1.8.2. The problem seems to be that Uglify is converting the special characters in the
jQuery.trim
method:... !core_trim.call("\uFEFF\xA0") ...In general it seems like we might want a build step to verify there are only plain-ASCII (char code <127) characters in both the development and minified files.
Confirmed, and also in 1.8.2. The problem seems to be that Uglify is converting the special characters in the
jQuery.trim
method:In general it seems like we might want a build step to verify there are only plain-ASCII (char code <127) characters in both the development and minified files.