java - Ascii not converted in commons lang3 -
stringescapeutils.escapexml("cortés")
working in commons-lang2.3 not working in 3.2.1. expected output "cortés"
actual output "cortes"
.
escapexml()
deprecated in 3.2.1. use escapexml10()
or escapexml11()
instead.
alternatively, documentation:
note unicode characters greater 0x7f of 3.0, no longer escaped. if still wish functionality, can achieve via following:
stringescapeutils.escape_xml.with( numericentityescaper.between(0x7f, integer.max_value) );
Comments
Post a Comment