I'm trying to localize my aspx pages. I'm done with content localization using L10n features provided by .net f/w, like resource files. But I'm finding it difficult to set local data in page titles.
我正在尝试本地化我的aspx页面。我完成了使用.net f / w提供的L10n功能进行内容本地化,就像资源文件一样。但我发现很难在页面标题中设置本地数据。
Most of the browsers, including IE and FF, shows content on window title with some boxes (FF will show properly localized text in tab, IE doesn't even do that). But its working fine in safari (on windows).
大多数浏览器,包括IE和FF,都会在窗口标题上显示带有一些框的内容(FF将在选项卡中显示正确的本地化文本,IE甚至不会这样做)。但它在safari(在Windows上)工作正常。
When I did a research it seems like this issue exits ONLY for some of the languages. For example, the Hindi version of BBC shows the title with boxes. But Arabic version shows the localized text in title.
当我进行研究时,似乎这个问题仅针对某些语言退出。例如,BBC的印地语版本用方框显示标题。但阿拉伯语版本显示标题中的本地化文本。
Can somebody please tell me why this is happening? How we can solve this issue?
有人可以告诉我为什么会这样吗?我们如何解决这个问题?
Note: My site is using Asp.net 2.0 / IIS
注意:我的网站使用的是Asp.net 2.0 / IIS
5 个解决方案
#1
5
I suspect this is a typeface issue. The browser title bar and other window ornaments are usually rendered by your OS, not by the browser itself, so if you've configured Windows to use a typeface that doesn't support the additional character glyphs required for Hindi, Arabic, etc., then you'll get the boxes instead. Within your actual pages, you're probably using a typeface which does include support for all these extended characters, which is why you're only seeing the problem on the window titles.
我怀疑这是一个字体问题。浏览器标题栏和其他窗口饰品通常由您的操作系统呈现,而不是由浏览器本身呈现,因此如果您将Windows配置为使用不支持印地语,阿拉伯语等所需的附加字符字形的字体,然后你会得到方框。在您的实际页面中,您可能正在使用包含对所有这些扩展字符的支持的字体,这就是为什么您只看到窗口标题上的问题。
Safari uses its own rendering engine for everything including the window chrome, which is why it doesn't look like a normal Windows app, and why your localized titles are working.
Safari使用自己的渲染引擎来处理所有内容,包括窗口镶边,这就是为什么它看起来不像普通的Windows应用程序,以及为什么本地化的游戏正在运行。
You might want to try changing your Windows "Active Title Bar" font (under Display Properties, Appearance, Advanced) to something like Arial which covers the full set of Unicode characters, and see if this resolves the problem?
您可能想尝试将Windows“活动标题栏”字体(在“显示属性”,“外观”,“高级”下)更改为Arial,其中包含完整的Unicode字符集,并查看是否可以解决问题?
#2
1
For me, both the BBC sites you link to get the proper characters in the window title bar (using Firefox or IE, on Windows).
对我来说,你链接到的BBC网站都会在窗口标题栏中找到正确的字符(在Windows上使用Firefox或IE)。
I suspect you don't have the right fonts installed, though I'm not sure entirely what fonts it is that you would be missing to cause this problem, particularly not if Safari works.
我怀疑你没有安装正确的字体,虽然我不确定你会缺少什么字体导致这个问题,特别是如果Safari工作的话。
In any case, I think it's a problem with the configuration of your system, not with the site you're developing. Hopefully your target audience will have a correctly configured system to display their own language.
在任何情况下,我认为这是系统配置的问题,而不是您正在开发的网站。希望您的目标受众能够使用正确配置的系统来显示自己的语言。
#3
0
It's a font issue, and not something you can fix on the server side. If the font used for title bar text is missing glyphs present in the font used for tabs, then it will appear correctly in the tab but not the title bar. That would also explain why Safari works -- it uses its own fonts and font rendering system for everything.
这是一个字体问题,而不是你可以在服务器端修复的东西。如果用于标题栏文本的字体缺少用于制表符的字体中的字形,则它将在选项卡中正确显示,但不会显示在标题栏中。这也可以解释为什么Safari可以工作 - 它使用自己的字体和字体渲染系统。
#4
0
The problem has to do with where and how the browsers show the web page title.
问题与浏览器显示网页标题的位置和方式有关。
IE shows the page title in the standard window title. IE doesn't do the drawing itself, but leaves that to the OS. The OS title drawing code uses the standard font, which depends on the OS locale. The default font on your machine probably does not have characters for the Hindi. hence the boxes.
IE在标准窗口标题中显示页面标题。 IE不会自己绘图,而是将其留给操作系统。操作系统标题绘图代码使用标准字体,该字体取决于操作系统区域设置。您机器上的默认字体可能没有印地语的字符。因此盒子。
Firefox does not do custom drawing in the title, so it shows the same boxes. However, FF draws the tabs using a font of its choice.
Firefox不会在标题中进行自定义绘图,因此它显示相同的框。但是,FF使用其选择的字体绘制选项卡。
Safari does custom drawing of everything, including the window title and is using a font of its choice.
Safari自定义绘制所有内容,包括窗口标题,并使用其选择的字体。
#5
0
I see no problems in the links you gave, FireFox 2 & 3, on Windows and Linux. Both on the window title and the tab title.
我发现在Windows和Linux上你给FireFox 2和3的链接没有问题。窗口标题和标题标题都有。
#1
5
I suspect this is a typeface issue. The browser title bar and other window ornaments are usually rendered by your OS, not by the browser itself, so if you've configured Windows to use a typeface that doesn't support the additional character glyphs required for Hindi, Arabic, etc., then you'll get the boxes instead. Within your actual pages, you're probably using a typeface which does include support for all these extended characters, which is why you're only seeing the problem on the window titles.
我怀疑这是一个字体问题。浏览器标题栏和其他窗口饰品通常由您的操作系统呈现,而不是由浏览器本身呈现,因此如果您将Windows配置为使用不支持印地语,阿拉伯语等所需的附加字符字形的字体,然后你会得到方框。在您的实际页面中,您可能正在使用包含对所有这些扩展字符的支持的字体,这就是为什么您只看到窗口标题上的问题。
Safari uses its own rendering engine for everything including the window chrome, which is why it doesn't look like a normal Windows app, and why your localized titles are working.
Safari使用自己的渲染引擎来处理所有内容,包括窗口镶边,这就是为什么它看起来不像普通的Windows应用程序,以及为什么本地化的游戏正在运行。
You might want to try changing your Windows "Active Title Bar" font (under Display Properties, Appearance, Advanced) to something like Arial which covers the full set of Unicode characters, and see if this resolves the problem?
您可能想尝试将Windows“活动标题栏”字体(在“显示属性”,“外观”,“高级”下)更改为Arial,其中包含完整的Unicode字符集,并查看是否可以解决问题?
#2
1
For me, both the BBC sites you link to get the proper characters in the window title bar (using Firefox or IE, on Windows).
对我来说,你链接到的BBC网站都会在窗口标题栏中找到正确的字符(在Windows上使用Firefox或IE)。
I suspect you don't have the right fonts installed, though I'm not sure entirely what fonts it is that you would be missing to cause this problem, particularly not if Safari works.
我怀疑你没有安装正确的字体,虽然我不确定你会缺少什么字体导致这个问题,特别是如果Safari工作的话。
In any case, I think it's a problem with the configuration of your system, not with the site you're developing. Hopefully your target audience will have a correctly configured system to display their own language.
在任何情况下,我认为这是系统配置的问题,而不是您正在开发的网站。希望您的目标受众能够使用正确配置的系统来显示自己的语言。
#3
0
It's a font issue, and not something you can fix on the server side. If the font used for title bar text is missing glyphs present in the font used for tabs, then it will appear correctly in the tab but not the title bar. That would also explain why Safari works -- it uses its own fonts and font rendering system for everything.
这是一个字体问题,而不是你可以在服务器端修复的东西。如果用于标题栏文本的字体缺少用于制表符的字体中的字形,则它将在选项卡中正确显示,但不会显示在标题栏中。这也可以解释为什么Safari可以工作 - 它使用自己的字体和字体渲染系统。
#4
0
The problem has to do with where and how the browsers show the web page title.
问题与浏览器显示网页标题的位置和方式有关。
IE shows the page title in the standard window title. IE doesn't do the drawing itself, but leaves that to the OS. The OS title drawing code uses the standard font, which depends on the OS locale. The default font on your machine probably does not have characters for the Hindi. hence the boxes.
IE在标准窗口标题中显示页面标题。 IE不会自己绘图,而是将其留给操作系统。操作系统标题绘图代码使用标准字体,该字体取决于操作系统区域设置。您机器上的默认字体可能没有印地语的字符。因此盒子。
Firefox does not do custom drawing in the title, so it shows the same boxes. However, FF draws the tabs using a font of its choice.
Firefox不会在标题中进行自定义绘图,因此它显示相同的框。但是,FF使用其选择的字体绘制选项卡。
Safari does custom drawing of everything, including the window title and is using a font of its choice.
Safari自定义绘制所有内容,包括窗口标题,并使用其选择的字体。
#5
0
I see no problems in the links you gave, FireFox 2 & 3, on Windows and Linux. Both on the window title and the tab title.
我发现在Windows和Linux上你给FireFox 2和3的链接没有问题。窗口标题和标题标题都有。