Android Replace “…” with ellipsis character

后端 未结 7 725
暗喜
暗喜 2020-12-12 09:20

Since AVD tools 16 I\'m getting this warning:

Replace \"...\" with ellipsis character (..., …) ?

in my strings.xml

at thi

相关标签:
7条回答
  • 2020-12-12 10:15

    This answer is indirectly related to this question:

    In my case textView1.setTextView("done&#8230"); was showing some box/chinese character. Later, I checked into fileformat.info for what the value represents and I found this is a Han character. So, what to do? I searched for "fileformat.info ellipse character" and then everything became clear to me once I saw its values are;

    UTF-16 (hex) 0x2026 (2026)

    UTF-16 (decimal) 8,230

    So, you have several encoding available to represent a character (e.g. 10 in Decimal is represented as A in hexa) so it is very important to know when you are writing an unicode character, how receiving function decodes it. If it decodes as decimal value then you have to provide decimal value, if it accept hexadecimal then you have to provide hexadecimal.

    In my case, setTextView() function accepts decimal encoded value but I was providing hexadecimal values so I was getting wrong character.

    0 讨论(0)
提交回复
热议问题