c# - C#:如何在一个文件中读取 'éóú' 和 öäü 等字符?
问题描述
解决方案
The problem is that your text editor saved your fr-fr.json
as UTF-8 and your de-de.json
as Latin-1 (aka "Default" on your system).
The solution is to save all your JSON files as UTF-8 (since UTF-8 can encode all Unicode characters and has become the new de-facto standard for text files) and always use UTF-8 when reading files.
How to save your JSON file as UTF-8? That depends on your text editor. In Notepad, for example, there's an "Encoding" drop-down box at the bottom of the "Save As" window.
推荐阅读
- logging - TYPO3:如何配置 $GLOBALS['TYPO3_CONF_VARS']['LOG'] 正确性
- javafx - 使用 OpenFX 剪辑(截断)3D 形状
- java - Gradle Swagger CodeGen DefaultGenerator CodegenConfigurator 添加 Lombok
- typescript - 在打字稿中格式化和查看对象的内容
- css - 计算css或样式组件或scss中元素的实际宽度
- c# - 如何绑定多个Either<,>?
- java - 如何将我的浮动操作按钮连接到我的 Android 项目中的活动
- html - 如何制作边框's 和's?
- powershell - 如何使用两个 cmdlet(get-printer 和 get-printerport)的结果获得唯一的输出?
- python - 如何制作python gui词典,输入答案时不区分大小写