I have Finnish characters in my text (for example ä, ö and å) that are unsafe in XML, is there any library/framework for this purpose?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
XML supports Unicode, so the only thing you really need to escape are the five basic XML entities (gt, lt, quot, amp, apos). If you use StringEscapeUtils.escapeXML, it will turn all your ä, ö and å into ugly \uabcd stuff.