jerrytouille
jerrytouille

Reputation: 1238

Android XML string 'et cetera' encode?

This gives me an error:

<string name="txt_urbeautiful">What...</string>
Replace "..." with ellipsis character (…, &&;#8230;)

So how do I encode 'et cetera...' in XML?

Upvotes: 3

Views: 2240

Answers (2)

dharmendra
dharmendra

Reputation: 7881

"&#xb7;"

That will represent .(dot ) in xml ,

XML does not use \ue*** notation. Character references, starting with &#, may be used, but they are mostly not needed. XML is usually used with UTF-8 character encoding, so that each character can be written as such.

Upvotes: 0

pepea
pepea

Reputation: 243

As the error says, you must replace ... by &#8230; :

<string name="txt_urbeautiful">What&#8230;</string>

Upvotes: 6

Related Questions