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 to solve that error?
For Single Quote (') You can use \' in your string resources.
A string resource provides text strings for your application with optional text styling and formatting. There are three types of resources that can provide your application with strings: String. XML resource that provides a single string.
String Array. XML resource that provides an array of strings. Quantity Strings (Plurals) XML resource that carries different strings for pluralization. All strings are capable of applying some styling markup and formatting arguments.
<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>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With