Hi,

Just struggled with this and wanted to bump the solution of this a bit.

Using java directly from xpath like
xpat(java.text.Normalizer.normalize(normalizeText,
java.text.Normalizer.Form.NFD)) does not work, it throws a
javaLangError.

Alex solution works like a charm:

--------------------
function cleantext(normalizeText) {
importPackage(java.text);
var myCleanText = java.text.Normalizer.normalize(normalizeText,
java.text.Normalizer.Form.NFD);
var myDiacriticalFreeText = new
java.lang.String(myCleanText).replaceAll("\\p{InCo
mbiningDiacriticalMarks}+", "");
return myDiacriticalFreeText;
}

--------------------


Many thanks for it


--
joakim_ganse
------------------------------------------------------------------------
joakim_ganse's Profile: https://forums.netiq.com/member.php?userid=159
View this thread: https://forums.netiq.com/showthread.php?t=9353