Page 1 of 1

External JS file with different encoding

Posted: Fri May 11, 2012 4:15 am
by shiznatix
I have a website that includes an external JS file which loads a list of TV channels in Sweden. This is fine and all but my website is in UTF-8 while the external JS file is returning everything in the localized Swedish encoding.

This is turning all of the ä and ö and other accented characters into the ? things. Obviously this is not the intended result and I would prefer to keep everything UTF-8 because it makes the most sense but I need to get these characters to show correctly. How can I either change the encoding of the returned data from the JS file or display the page using 2 types of encoding?

Re: External JS file with different encoding

Posted: Fri May 11, 2012 4:43 am
by Weirdan

Re: External JS file with different encoding

Posted: Fri May 11, 2012 5:58 am
by shiznatix
thanks! works perfectly