使用dataformatingstring为数据绑定控件请求卢比符号 [英] Requesting rupee symbol using dataformatingstring for databound controls

查看:75
本文介绍了使用dataformatingstring为数据绑定控件请求卢比符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友们,



我正在使用一些提交页面,因为我有价格栏。在显示模式下提交表单后,我需要卢比符号来支持所有操作系统和所有使用dataformatingstring绑定控件的浏览器。





谢谢提前。

Dear Friends,

i have working with some submit page, in that i have price column. After submitting the form in display mode i need rupee symbol for supporting all OS & all browsers using dataformatingstring for bound controls.


Thanks in Advance.

推荐答案

卢比的唯一问题是它的标志不是很久以前的标准化(如果是印度卢比,这是U + 20A8),所以所有系统默认都不支持它。请参阅: http://en.wikipedia.org/wiki/Rupee#Sign [ ^ ]。



这个问题有不同的方法。一个简单的方法是显示Rs,我认为这是蹩脚的,因为标准需要真正的独特标志。



幸运的是,最终的解决方案相对容易谈到HTML。首先,我知道您可以找到带有此标志的可用字体,有些甚至称为卢比标志字体或卢比字体。请自行在网上找到这样的字体,对你来说应该更容易。即使这样的字体只包含一个符号,对你来说也足够了。



然后,有一种方法可以在某些CSS中嵌入字体并应用这种字体对于一个或多个样式,然后在HTML中使用此(或这些)样式。方法如下: http: //www.techrepublic.com/blog/web-designer/embed-custom-fonts-on-your-website-with-the-font-face-property [ ^ ]。



参见:

https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face [ ^ ],

http://stackoverflow.com/questions/11737168/how-to-embed-fonts-in-css [ ^ ],

HTTP://计算器。 com / questions / 16685979 / how-do-i-embed-a-custom-website-font-in-ttf-format-for-all-browsers [ ^ ]。



问题解决了。



-SA
The only problem with the rupee is that its sign was standardized not so long time ago (this is U+20A8 in case if Indian rupee), so it is not yet supported by default by all the systems. Please see: http://en.wikipedia.org/wiki/Rupee#Sign[^].

There are different approaches to this problem. One trivial approach is to show "Rs", which I think is lame, since the standard requires "real" unique sign.

Fortunately, the ultimate solution is relatively easy when it comes to HTML. First of all, I know that you can find available fonts with this sign, some even called "rupee sign font" or "rupee font". Please find such font on the Web by yourself, it should be easier for you. Even if such font contained only one symbol, it would be enough for you.

And then, there is a way to embed a font in some CSS and apply this font to one or more styles, then use this (or these) style(s) in your HTML. Here is how: http://www.techrepublic.com/blog/web-designer/embed-custom-fonts-on-your-website-with-the-font-face-property[^].

See also:
https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face[^],
http://stackoverflow.com/questions/11737168/how-to-embed-fonts-in-css[^],
http://stackoverflow.com/questions/16685979/how-do-i-embed-a-custom-website-font-in-ttf-format-for-all-browsers[^].

The problem is solved.

—SA


试试这个& #8 3 7 7;在卢比的地方签名。

例如:

我将显示& #8 3 7 7;



将显示



我将显示₹





注意:添加空格以显示unicode字符值。

使用此作为refrence http://unicode-table.com/en/search/?q=20B9 [ ^ ]
Try this "& # 8 3 7 7 ;" on the place of rupees sign.
For Example:
I will display "& # 8 3 7 7 ;"

Will display

I will display "₹"


Note: Spaces are added to show you the unicode character value.
use this as refrence http://unicode-table.com/en/search/?q=20B9[^]


这篇关于使用dataformatingstring为数据绑定控件请求卢比符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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