I’m using webMethods version 9.6 and am having problem using ICU4J library. I want to convert some UTF8 characters to iso-8859-1 and can use the Transliterator class. I’ve tested this is a simple java app and it’s successful, however is does not work in wM
The Designer / IS response
java.lang.IllegalArgumentException: Illegal ID [^\u0000-\u00FF] Latin-ASCII
This is a code extract from the my simple java app and it works successfully
import com.ibm.icu.text.Transliterator;
public class Convert {
public String convert(String text) {
String rule = “::Any-Latin; ::[^\u0000-\u00FF] Latin-ASCII;”;
Transliterator cr = Transliterator.createFromRules(“kEeEe”, rule, Transliterator.FORWARD);
return cr.transform(text);
}
}
On further investigation is can see that Latin-ASCII is missing from the available ID’s
wM javaservice
…
Kirghiz-Latin/BGN
Korean-Latin/BGN
Latin-Arabic
Latin-Armenian
Latin-Bengali
Latin-Cyrillic
Latin-Devanagari
Latin-Georgian
Latin-Greek
from the java app
…
Katakana-Latin
Kazakh-Latin/BGN
Kirghiz-Latin/BGN
Korean-Latin/BGN
Latin-ASCII
Latin-Arabic
Latin-Armenian
Latin-Bengali
Latin-Bopomofo
I’ve looked in several folders where the ICU4J library exists in Designer, JVM, common, etc and remove all reference to then as the were old, yet is still give the same response. The library I’m trying to use is icu4j-59_1.jar and have added this in several locations such as \jvm\jvm\jre\lib\endorsed but with no success
Any suggestions?
#webMethods#Integration-Server-and-ESB#Flow-and-Java-services