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โ€)