Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试写:
options.Title = "Русский текст";
在编译的 JS 中我得到:
options.title = '\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd \ufffd\ufffd\ufffd\ufffd\ufffd';
所以标题中的所有字符都替换为'\ufffd'。我得到“????????? ???????” 而不是“Русский текст”进入标记。
尝试使用另一种编码(如带有签名的 UTF-8)(代码页 65001)保存您的源文件 (.cs)。您可以在 Visual Studio 中的文件 -> 高级保存选项下找到此选项。这适用于我的土耳其字符。似乎 ScriptSharp 不能很好地处理单字节编码。