Logstash: Issue with Encode Windows-1252

Hi ,
I am facing an issue with Logstash to a read a file.
Original data in the file: r8Dà€ - contains uni-code characters.
When read the file in python with the options - (encoding='Windows-1252', errors="surrogateescape")
With these options, able to get the expected output - 'r8D\udc81\x08à€\x04\n'

But in Logstash with encoding 'Windows-1252', getting different output (23r8Dà€).

Please let us know how to apply errors="surrogateescape" along with encode "Windows-1252" in logstash to get expected output.

Thank you in advance.

Hi, I would like to follow up.
Best Regards,
Sreedhar

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.