On Aug 2, 1:02 am, "{ Devdroid }" <[email protected]> wrote:> Quote your strings and you will be on safe ground: > <string name="ButtonLabel_QuestionMark">"?"</string> > <string name="ButtonLabel_AtSymbol">"@"</string> Excellent. Thanks. That's the ticket! I've just read the help topic for string resources again under 'Escaping apostrophes and quotes'. Your solution is still not obvious, to my mind, from the documentation. I'm sure I could have worked it out by more trial and error or, perhaps, looking at the Android source code. Either way it might be worth adding for future reference by others visiting this topic: To get a question mark surrounded by two quote marks [i.e. "?"] use: <string name="ButtonLabel_QuoteQuestionQuote">\"?\"</string> You might expect to be able to use this: <string name="ButtonLabel_QuoteQuestionQuote">'"?"'</string> But you'll get an error [Apostrophe not preceded by \ (in '"?"')]. I thought that this would work because the documentation states "If you have an apostrophe or a quote in your string, you must either escape it or enclose the whole string in the other type of enclosing quotes.". I don't think this is correct. From what I can see you're only allowed to enclose the whole string in 'double' quotes (i.e. not apostrophes). Therefore quote characters have to be escaped individually with back slashes. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

