While working on a French app (french language is full of single quotes), I needed to use i18n with single quotes and many other accentuated chars.
So here is an extract of my messages.fr-FR
file :
some.key=C'est la vie!
And here is the output :
Cest la vie!
How can I use strings containing single quotes in my messages? Already tried those :
some.key=C\'est la vie! --> C\est la vie!
some.key="C'est la vie!" --> "Cest la vie!"
EDIT : Thanks to the link KDavid gave I was able to find the solution. You have to double single-quote.
C''est la vie! --> C'est la vie!
prefix the single quote with... single quote (so just use two single quotes):
some.key=C''est la vie!
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