I am getting some JSON data with a formatted string of currency like this
₽35
However, i noticed that on a Nexus 5 (Lollipop) it displays it correctly but other phones such as the HTC one mini and Samsung GT-I9505, it displays a blank character.
I attempted to research the issue, i could not find a solution other than, in the XML layout file, ensure that this line is present
<?xml version="1.0" encoding="utf-8"?>
But i still have the same issue
Please help
Edit 15 May 2015
Loading custom font NotoSans (Please note I know this would leak memory but its just a quick test)
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
TextView ruble = (TextView)findViewById(R.id.ruble);
Typeface myFont = Typeface.createFromAsset(getAssets(),"fonts/NotoSans-Regular.ttf");
ruble.setTypeface(myFont);
}
The Russian Ruble symbol defined in strings.xml (note I tried all)
<string name="rubleSymbolJava">\u20BD</string>
<string name="rubleSymbolHTML">₽</string>
<string name="rubleSymbolHTMLHex">₽</string>
Same problem, on older phones shown as a square but works on Android 5.0 BUT nothing older.
SOLVED Please see my answer