Apache nifi 必须从NIFI数据流中的文本文件中删除unicode NEL

Apache nifi 必须从NIFI数据流中的文本文件中删除unicode NEL,apache-nifi,Apache Nifi,我需要从NIFI数据流中的流文件中删除unicode字符 到目前为止,我一直使用replacetext processor来清理数据,但如何从replacetext processor中搜索unicode字符串 1/我只是将其复制粘贴到搜索字符串中 2/使用表达式:${literal('…;'):unescapeXml()} 3/您可以用脚本(groovy)替换char def ff=session.get() 如果(!ff)返回 ff=session.write(ff,{rawIn,r

我需要从NIFI数据流中的流文件中删除unicode字符 到目前为止,我一直使用replacetext processor来清理数据,但如何从replacetext processor中搜索unicode字符串

1/我只是将其复制粘贴到搜索字符串中

2/使用表达式:
${literal('…;'):unescapeXml()}

3/您可以用脚本(groovy)替换char

def ff=session.get()
如果(!ff)返回
ff=session.write(ff,{rawIn,rawOut->
rawIn.withReader(“UTF-8”){reader->
rawOut.withWriter(“UTF-8”){writer->
reader.transformChar(writer){ch->ch==(char)'\u0085'?'':ch}
}
}
}作为(回调)
会话转移(ff、REL_成功)