You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@nifi.apache.org by Selvam Raman <se...@gmail.com> on 2017/03/16 12:04:09 UTC

Convert attribute to ascii value

Hi ,

Let's say i have filename attribute value is "12345". How can i apply ascii
function on it to get "049 050 051 052 053".

-- 
Selvam Raman
"லஞ்சம் தவிர்த்து நெஞ்சம் நிமிர்த்து"

Re: Convert attribute to ascii value

Posted by Mark Payne <ma...@hotmail.com>.
Hi Selvam,

I don't believe there is anything in the Expression Language that will give you the ascii value for a character.
Your best bet is probably to use an ExecuteScript processor and write a simple Groovy (or python or whatever
you're most comfortable with) script to do this.

Thanks
-Mark



On Mar 16, 2017, at 8:04 AM, Selvam Raman <se...@gmail.com>> wrote:

Hi ,

Let's say i have filename attribute value is "12345". How can i apply ascii function on it to get "049 050 051 052 053".

--
Selvam Raman
"லஞ்சம் தவிர்த்து நெஞ்சம் நிமிர்த்து"