Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problem while reading UCS-2 LE BOM encoded file in Apache NiFi

In Apache NiFi I'm trying to read a text file having encoding as UCS-2 LE BOM and then I'm trying to convert it to JSON. But Apache NiFi is considering it as a single line.

I tried converting to UTF-8 using ConvertText processor but it does not support encoding UCS-2 LE BOM.

Does anyone know how to convert this file to UTF-8 using Apache NiFi?

like image 577
James Cameron Avatar asked Oct 20 '25 09:10

James Cameron


1 Answers

UCS-2 LE BOM is a predecessor of UTF-16 so try UTF-16 in ConvertText processor.

like image 188
Er. ßridy Avatar answered Oct 22 '25 23:10

Er. ßridy