How can I write character ' in Android's strings.xml?
How do I repr开发者_StackOverflowesent the single-quote character (') in strings.xml?
From the Documentation:
<string name="good_example">"This'll work"</string>
<string name="good_example_2">This\'ll also work</string>
You want to display "This'll work", You should be replace ’
instead of '
.
The following code as:
<string name="good_example">"This’ll work"</string>
Character = Escaped form(s)
@ = @
? = \?
< = <
& = &
Single quote (') = Any of the following:
'
\'
Double quote (") = Any of the following:
"
\"
eg.> without character -- Any Customer's ATM & Debit Card.
correct answer or string-- Any Customer\'s ATM & Debit Card.
精彩评论