AnsweredAssumed Answered

add node ISO9075 encode problems

Question asked by denza on Aug 10, 2009
I created a custom action in which a create a node (if it does not exist) with a following code:

Node town;
String cy= ISO9075.encode("cm:"+newNode);
             try {
                town= parentNode.getNode(cy);
             catch(PathNotFoundException e) {
                town= parentNode.addNode(cy,"cm:folder");

it works OK if newNode is a one word string. If a have 2 words I get something like this: New_x0200_York instead of New York that I wanted.If don't use encode function I get an error. Anyone can help? Thanks!