views:

19

answers:

1

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?

+1  A: 

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,

<script src="my_cp1252_encoded_file.js" charset="Windows-1252"></script>

should work.

1This list appears to not have been updated since Internet Explorer 5. I couldn't find a newer list.

Andy E