Wednesday, 14 May 2014

Do not save VBS file in UTF8 encoding

Recently, I had to run a VB script as suggested here. I do not have much experience on Windows; but I often keep my source code in utf8. I also have my IDE set to it. So, when I saved the script I opted for utf8. However, when I ran the script, I got a strange error. Since, I had opted specifically for utf8 overriding the default, I tried saving in the default character encoding, i.e. ASCII and the script ran fine. Reading about it, I can see that ASCII and utf-16 are supported. So, lesson learned: do not use utf8 on windows.

No comments: