januseldarim
januseldarim

Reputation: 73

JavaScript file is shown on Japanese(or other Asian language)

I have an ASP.NET MVC installed on a server and when I go to the page from a virtual machine using IE10 a javascript error is shown, when I look in the IE Developers tools the error is SCRIPT1014: Invalid character. I try to debug the jscript but the code looks like Japanese kanjis(??) This only happens from this machine and only on IE10. Anyone know if I can resolve this problem?(I cant change the windows language, the machine is from a customer and I dont have admin rights).

Upvotes: 0

Views: 162

Answers (1)

januseldarim
januseldarim

Reputation: 73

The problem was enconding, I changed the encoding and worked. I opened the .js file on Notepad++ and select encoding and changed from UCS2 little endian to UTF-8

Upvotes: 1

Related Questions