为什么我的网页上有问号随机的地方吗? [英] Why on my web-page there is question mark in random place?

查看:182
本文介绍了为什么我的网页上有问号随机的地方吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我产生被剃刀网页有时浏览器告诉我问号,而不是一个随机的单code字符。

I generate web-page by Razor and sometimes browser show me question marks instead of one random unicode character.

例如:

我认为,在两个字节的UNI code字符的第一个字节是在一个TCP包和性格中的其他TCP包的第二个字节这个问号会显示在的地方。但为什么浏览器简化版,他们正确粘贴?

I think, this question mark is displayed in place where the first byte of two-byte unicode character is in the one tcp-package and the second byte of character in the other tcp-package. But why browser does't paste them correctly?

所有文件连接codeD由UTF-8。有<间的charset =UTF-8方式>

All files encoded by utf-8. There is <meta charset="utf-8">.

更新

问号依赖于页面内容。如果我问号前更改的内容,它可能会消失或转移到其他地方(代替其它字符)

Question marks dependent on page content. If I change content before question mark, it may disappear or move to other place (replace other character)

推荐答案

编码字符UTF-8编码方案是不符合编码工作时,你应该考虑的唯一的事情。字体家庭也扮演这件事渲染正确的图形为您的所有字符的巨大作用;字符毕竟只是铭文图形绘制。 UNI code通吃的人物的字节(1,2,3,4,它曾经大小)的照顾,并显示在屏幕上正确的字符;如果你的框架或FONT-FAMILY支持字形。

Encoding the characters in UTF-8 encoding scheme is not the only thing you should consider while working with encodings. Font family also plays a great role in this thing for rendering the correct graphics for all of your characters; characters are after all just glyph drawn by graphics. Unicode takes care of all of the bytes (1, 2, 3, 4 which ever size) of your characters and shows the correct character on your screen; if your framework or font-family supports the glyph.

在您的网站上,FONT-FAMILY;可能加载自定义,不支持此字符(或code页面更具体),这就是为什么浏览器必须回退,显示一个问号。你也说性格的随机的选择,所以定义问题,是一个FONT-FAMILY基于问题。我会建议你尝试一下您的应用程序在'的Segoe UI FONT-FAMILY,看看是否可行;因为这很可能会工作。

In your website, the font-family; probably a custom loaded, does not support this character, (or the code page to be more specific) that is why browser has to fall-back to display a question mark. You're also saying that the character is randomly chosen, so that defines the problem, for being a font-family based problem. I would advise that you try out your application in 'Segoe UI' font-family and see if that works; because that probably would work.

除了我的建议,请确保该字体家庭不支持,其中这个人物存在code页面。否则,它会显示一个问号。

Apart from my suggestion, please make sure that the font-family does support that code page where this character exists. Otherwise, it will display a question mark.

这篇关于为什么我的网页上有问号随机的地方吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆