- Home /
Currency localization problem for Yen, Won, and Yuan
I'm having an issue developing my game for asian markets. The issue is currency and supporting the major ones (dollar, euro, pound, kroner, yen, yuan, and won). I am using .NET libraries to format my currencys:
Thread.CurrentThread.CurrentCulture = new CultureInfo("ja-JP");
string currencyAmount = String.Format("{0:c}",12345.67f);
I then use an arial font set to unicode and set my TextMesh.text = currencyAmount;
For $, Euro, Kroner everything works fine. For Japanese yen, I get a "\" backslash character returned as its currency symbol. The won shows up blank in the textmesh, but on a Debug.Log() it shows the Won symbol.
Any ideas? thanks. JohnE
Answer by Enzign · Feb 13, 2012 at 12:40 PM
That can happen if the character you are trying to print can't be found in the font you are using. My guess is that this is the problem.
Answer by KristianHJ · Jan 06, 2012 at 05:08 PM
Did you ever figure this out. I'm having the exact same problem
Answer by Jonu · Jun 12, 2013 at 02:52 PM
I am having the exact problem. I am working with Ngui. I can see Yen sign in editor, but as soon as I put it on Ipad or Iphone the sign disappears
Your answer
![](https://koobas.hobune.stream/wayback/20220612224235im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Chinese Japanese Korean dynamic font 1 Answer
How to setup TextMesh Pro Font Asset to include characters from all languages? 1 Answer
How to display Chinese characters (TMP) and where to find royalty free chinese fonts 0 Answers
How can I determine the current locale, or at least the currency symbol? 4 Answers
Font Metrics 1 Answer