When I dump out Kafka messages into Windows cmd with the following command:
kafka-console-consumer --bootstrap-server example.server.net:31128 --topic MY_TOPIC_NAME --from-beginning
the Cyrillic characters are shown in the console as abracadabra.
I was following this answer to change my code page to UTF-8 with chcp 65001
. Then I run cmd with cmd /u
and set font to Lucida Console
.
So if I write some Cyrillic characters into some txt file:
c:\test>echo привет > test.txt
the Cyrillic text is shown just fine. Then I dump out messages again but Cyrillic characters are still bad.
I was told that Kafka uses UTF-8 to store the data.
Could you please guide me how should I configure Win cmd to solve this issue?