Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted
Comments
Sergey Alexandrovich Kryukov 6-Aug-14 3:35am    
Indian rupee or some other currency unit? This is well-known problem, pretty easy to solve in case of the Web applications....
—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
 
Share this answer
 
v2
Comments
Nice step by step answer. + 5. :)
Sergey Alexandrovich Kryukov 6-Aug-14 3:54am    
I tried hard... :-)
Thank you, Tadit.
—SA
You always do... Deserved. :)
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[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900