Search code examples
androidfile-encodings

Division symbol in text file in raw folder


I have ÷ in .txt file in my android. When this division symbol is shown on android device, I see "�"

To make it worse, my laptop doesn't have division sign on keyboard. I used the above sign from wikipedia.

Any guess how can I resolve this.


Solution

  • You should use the Unicode value for any symbols such as the division symbol you have here.

    Try the Unicode U00F7.

    When using it within a String format like "\u00F7".