I had this problem with TypeScript version 0.9.1.1 using Visual Studio 2012. The problem was caused by the fact that I inserted the pound sterling currency symbol into the file when the file had 'West European (Windows) - Codepage 1252' encoding.
The solution was to save the file with UTF-8 encoding (which I expected it to be in the first place).
To do this, in Visual Studio, click File â Advanced Save Options and select the Unicode encoding (UTF-8 with signature) - Codepage 65001 ', and then save the file. Then the TypeScript compiler is happy again.
source share