How to put this character: "'" (simple quote label) in the android xml file?

While translating the text into Italian, I received an error on this line of the XML file strings.xml, because "the character is in L'utente:

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

How to solve this error?

+4
source share
2 answers

try it

 <string name="dialog">L\'tutente non esiste </string> 
+3
source
 <string name="good_example">"This'll work"</string> <string name="good_example_2">This\'ll also work</string> 

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

+7
source

Source: https://habr.com/ru/post/1339019/


All Articles