26

Android doesn't allow strings containing '?' because it has special meaning in XML context. How do I encode this symbol in a string resource?

1 Answer 1

41

Use a backslash.

Read more about escaping characters here.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.