货币符号问题 [英] Currency symbol issue

查看:74
本文介绍了货币符号问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的一个应用程序中,我使用string.Format("{0:C}",myRate)来显示带有货币符号的汇率.我得到带有汇率的$符号,但是我的客户得到的是Rs货币符号而不是$.

谁能告诉我这是浏览器问题还是我的客户的机器问题?

我以前没有遇到过此类问题.我完全感到惊讶!

谢谢
Imrankhan

In one of my application, I use string.Format("{0:C}",myRate) to display rate with currency symbol. I am getting $ symbol with rate but my client is getting Rs currency symbol instead of $.

Can anyone tell me is this browser issue or my client''s machine issue?

I did not faced this kind of issue before. I am totally Surprised!!!

Thanks
Imrankhan

推荐答案

带有汇率的符号,但是我的客户获取的是卢比货币符号,而不是
symbol with rate but my client is getting Rs currency symbol instead of


.

谁能告诉我这是浏览器问题还是我的客户的机器问题?

我以前没有遇到过此类问题.我完全感到惊讶!!!

谢谢
Imrankhan
.

Can anyone tell me is this browser issue or my client''s machine issue?

I did not faced this kind of issue before. I am totally Surprised!!!

Thanks
Imrankhan




这是因为您的计算机和客户端计算机中的区域性信息不同.

您需要指定要使用的文化,否则它将使用当前的文化.

Hi,

This is because the culture information is different in your machine and your client machine.

you need to specify which culture you want to use otherwise it will use the current one.

using System.Globalization;
...
CultureInfo us = new CultureInfo("en-US");
string text = myRate.ToString("c", us);



瓦莱里.



Valery.


这篇关于货币符号问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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