I am having a HTML site declared and encoded as UTF-8. My Javascript sources are encoded with cp1252.
So i use this to set the encoding
<script src="my_cp1252_encoded_file.js" charset="cp1252" ></script>
This works in Mozilla but not in IE. Ideas?
CP1252 is likely to be an alias provided by Gecko/Firefox that maps to Windows-1252. Internet Explorer supports1 Windows-1252 as a value and so does Gecko. Therefore,
should work.
1This list appears to not have been updated since Internet Explorer 5. I couldn’t find a newer list.