使用 LocBaml 进行 WPF 本地化:处理特殊符号
我正在处理 WPF 应用程序的本地化(Windows 7 下的 Visual Studio 2010)。我刚刚使用 LocBaml 工具完成了本地化的整个过程,如WPF 全球化和本地化概述以及相关帖子中所述。
目标语言是意大利语(it-IT文化)。 当我用意大利语运行我的应用程序时,我在解释 © 和 ™ 的特殊符号时遇到问题:它们都在黑色菱形背景上显示为白色问号。
符号 © 和 ™ 在英语和意大利语 CSV 文件中显示相同。 我还尝试了意大利语中有但英语中没有的特殊字母(例如È、à等),它们也被解释为上面的菱形问题。
在区域和语言中,我将系统区域设置更改为意大利语[意大利],重新启动电脑并再次运行应用程序 - 这帮助我过去处理了类似的问题Windows XP 下 C++ 应用程序本地化的问题,但现在也没有帮助。 有人知道这里有什么问题吗?
I’m dealing with localization of a WPF application (Visual Studio 2010 under Windows 7). I’ve just accomplished the whole process of localization using LocBaml tool, as explained in WPF Globalization and Localization Overview and in related posts.
The target language is Italian (it-IT culture).
When I run my application in Italian, I have a problem with interpretation of the special symbols of © and ™: they both appear there as a white question sign upon a black diamond-shaped background.
The symbols © and ™ appear identically in both English and Italian CSV-files.
I tried also the special letters (such as È, à etc.) that are present in Italian but absent in English, and they also are interpreted as the above diamond-shaped question.
In Region and Language, I changed the system locale to Italian[Italy], restarted the PC and ran the application again – this helped me in the past to cope with a similar problem in localization of C++ applications under Windows XP, but now it didn’t help, either.
Has somebody any idea what is the catch here?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许我的反应迟了,但请尝试使用 UTF-8 编码保存本地化的 .csv 文件。这对我有用。
干杯
Maybe my is response is to late, but try saving the localized .csv file with UTF-8 encoding. This worked for me.
Cheers