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?
UCS-2 LE BOM
is a predecessor of UTF-16
so try UTF-16
in ConvertText processor.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With