android


Android strings.xml can't escape double quote


I have a String in strings.xml that should be displayed below a password field showing which characters cannot be used.
The String is:
<string name="password_invalid">The key can only consist of 8 to 63 ASCII characters or 64 hexdecimal digits bestehen und cannot contain these characters: \" , : ; \\ & % + ' < > ?</string>
But everytime I run the code, I get an error message from Android Studio:
Error:(495) Apostrophe not preceded by \ (in The key can only consist of 8 to 63 ASCII characters or 64 hexdecimal digits bestehen und cannot contain these characters: \" , : ; \\ & % + ' < > ?)
I just don't understand it why Android Studio sees the double quote as an error, I've already preceded it with a backslash as the documentation says I should.
What I did:
retype the whole phrase, not just copy it from somewhere -> same error
write the double quote with " instead of \" -> doesn't show up
clean/rebuild app -> same errors
I either get the error message from above or the double quote gets ignored completely. Does anyone have an idea why it doesn't work?
It says that the problem is the Apostrophe that is this ', not this ". Try escaping the apostrophe with backslash \'.
The Error is not with the quote " but with the apostrophe '. So escape it with \' as well.

Related Links

Android terminate problem
How can I create directory path and put my files in it while installing apk?
Set window full screen atribute after resume on Android
Books and Tutorials for OpenGL ES on Android and Object Oriented Programming
How to zip and unzip the files?
Android List view SectionIndexer - list view not displaying curent scroll letter
How to add footer view dynamically
Static methods vs. class extending android.app.Application?
Phonegap Webview - Show contacts list for Android Only
Android - how to create music note sound?
How to dynamically change the Spinner's items
Saving bytes from a .NET WebService from Android
Android custom dialler on tapping phone number links
Implementing OnTouchListener on LinearLayout - Android Development
writing a background program that executes when the main application is closed in android
Permission Denial , even after adding the correct permission in the manifest

Categories

HOME
search
deep-learning
hessian
nuget
vxml
telegram-bot
square
discrete-mathematics
performancepoint
atlassian
azure-powershell
event-sourcing
esoteric-languages
intershop
smartclient
sar
simpleitk
poedit
babel
jquery-ias
dpdk
event-store
opentk
interbase
has-and-belongs-to-many
progress-bar
spotipy
sinch
dotspatial
powershell-ise
quickfixj
clickjacking
hard-drive
github3.py
html-encode
apic
lint
google-earth-engine
modernizr
ods
cin
preloader
signal-strength
flask-login
snapchat
fwrite
wcftestclient
bbpress
google-photos
rxtx
sandcastle
pocketsphinx-android
polyline
rocks
redbeard-ios
parfor
wso2developerstudio
mapinfo
expectations
firebase-security
observablecollection
kiosk
ellucian-scribe
pushbots
mobiledoc-kit
crouton-os
libvlc
custom-errors
rewrite
roadkill-wiki
flock
typemock
ocra
airbrake
avahi
alloy-ui
canvg
snoop
bufferedinputstream
code-documentation
apache-spark-1.3
angular-gettext
sip-server
metatrader5
vsx
extjs2
qscrollarea
getopt
sbcl
accesscontrolexception
process-explorer
poker
mantle
resource-management
pdfviewer
dajaxice
mapping-by-code
apache-commons-dbutils
pinch
matlab-load
quotation-marks
zen
skype4java
wordprocessingml
escrow
fail-fast-fail-early
firefox-3
wspbuilder

Resources

Encrypt Message