问题描述
在我的应用程序中,我使用反斜杠作为基于文本的活动指示器(典型的/ -\序列..我删除了|因为它有一个不同的宽度)的一部分。一切都很好,直到我看到我的应用程序在日本的电脑上运行。
In my application I have used a backslash as part of a text-based activity indicator (a typical /-\ sequence.. I removed the | because it had a different width). All was well until I saw my application being run on a japanese computer. The backslash was replaced with a japanese character.
如何避免这种情况?
推荐答案
在你的delphi应用程序中,你可以选择一个字体,将Unicode代码点作为反斜杠。但是,大多数标准字体(包括Windows中的许多标准字体)会在日语区域设置中故意显示日元标记而不是反斜杠,原因是用户期望的。
In your delphi application you can select a Font that renders that Unicode codepoint as a backslash. However, most standard fonts including many in Windows, will intentionally show a Yen mark instead of a backslash, in Japanese locales, for reason that users expect it.
要真正确定显示的内容,使用自己的字体,一个不随Windows提供,并安装它与您的应用程序。
If you want to be really sure of what is shown, use your own font, one that is not shipped with windows, and install it with your application.
这篇关于如何在日语区域设置中显示反斜杠的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!