Default characer encoding for KafkaConnect built images #6951
Unanswered
akomisarek
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I do not think we set anything with regards to encoding. So I guess I would expect it to be the default inherited from the Red Hat UBI8 iamegs or from OpenJDK 11. Out of curiosity, why does the encoding matter? Nobody ever raised it before. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am wondering what's expected default character encoding for images built by KafkaConnect operator. It's not specified in the documentation (or I can't find it), I would assume it's UTF-8, but it doesn't seem to be the case.
We encountered an issue with IBM RabbitMQ Source Connector (but I guess it doesn't matter what source connector is used, it could break whenever the processing is encoding dependant), which I think managed to distill to KafkaConnect Operator and automatically built images.
I am using basic config for KafkaConnect yaml:
And when the KafkaConnect starts it gets, the
US-ASCII
encoding, which is something I wouldn't expect. What is more confusing if you exec into the Docker image, you see UTF-8 as expected. I guess it has got something with the fact that outside the shell locale is not initialised? Shouldn't UTF-8 be defualt/expected?Couple of commands to validate:
Running locale outside the shell:
Running locale inside the shell:
Is such difference expected/desirable? Wouldn't we benefit of using UTF8 as default, by enforcing this while image is built?
Thanks for the input!
Beta Was this translation helpful? Give feedback.
All reactions