谷歌浏览器开发工具中的打字稿源文件中的红点 [英] Red dots in typescript source file in Google Chrome Dev Tools
问题描述
我想在Google Chrome中调试打字稿文件,但出于某种原因,我看到了奇怪的红点。见图。
I want to debug a typescript file in Google Chrome, but for some reason I see weird red dots. See image.
有没有人遇到过这种情况?
我试图将该文件的编码更改为UTF-8,但没有帮助。
Has anyone encountered that? I've tried to change encoding of that file to UTF-8 but it did not help.
如何解决它?
仅在Chrome中出现(包括Standard和Canary版本)。 IE和Firefox行为确定
It happens in Chrome only (both Standard and Canary versions). IE and Firefox behaves ok
推荐答案
文件似乎使用UTF-16已被编码但被解释为UTF-8。每个红点代表一个空字节,它应该是UTF-16中的一个双字节字符的一部分,但是它是UTF-8中它自己的字符。
The file appears to have been encoded using UTF-16 but is being interpreted as UTF-8. Each of the red dots represents a null byte which is supposed to be part of a two-byte character in UTF-16 but is its own character in UTF-8.
这篇关于谷歌浏览器开发工具中的打字稿源文件中的红点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!