jrburke/requirejs — Issue #194: hardcoded charset break scripts in some browsers
Author: checat
Created: 2012-02-26 20:12:38+00:00
State: open

I have some sites in legacy 8-bit encoding (koi8-r).

Recently I've migrated one to use require.js.

Testing it I've found many scripts throw parse errors in IE6. Investigating it I've found parsing brakes on random string constants with chars \x80-\xff which are in koi8-r too.

Commenting out a string in require.js
node.charset = "utf-8";
repairs it.

Since most of sites have both HTML and JS in same charset, I think, it's better to leave charset to browser's default and remove this string.

Or you could pull #170