cancel
Showing results for 
Search instead for 
Did you mean: 

How to split the string on the basis of length of bytes

virender_prajap
New Contributor III

How can i Split string( UTF-8) on the basis of bytes length and not on the basis of character counts.
e.g String > 4000 bytes then split the string into multiple columns each not more than 4000 bytes.
Like, if string1 ~ 10,000 bytes then, first 4000 bytes in column1, next 4000 bytes in column2 and so on…
If String < 4000, then in a single column.

5 REPLIES 5

Thanks, where to use, i’ trying below expression in map snap but no luck
iconv.decode($payload.content,“UTF-8”)