开发者

How to put this symbol: " ' " (simple Quotation mark) in a XMLfile of android?

开发者 https://www.devze.com 2023-02-09 17:55 出处:网络
i am translating some text into Italian, an i got an error on this line of the XML of the strings.xml because the \' symbol on L\'utente:

i am translating some text into Italian, an i got an error on this line of the XML of the strings.xml because the ' symbol on L'utente:

<string name="usernotexist">L'utente non esiste</string> 

how t开发者_JAVA百科o solve that error?


<string name="good_example">"This'll work"</string>
<string name="good_example_2">This\'ll also work</string>

Taken from the official documentation: http://developer.android.com/guide/topics/resources/string-resource.html


Try this

<string name="dialog">L\'tutente non esiste </string>
0

精彩评论

暂无评论...
验证码 换一张
取 消