Search code examples
sql-serverazure-eventhubdebezium

German umlaut in debezium server


I am using debezium-server to stream changes from ms sql server to Azure event hubs. However German umlauts like Ü are send as ��.

I have tried to format the text columns in sql server to utf8 and latin1 but the result remains the same.


Solution

  • This is fixed by starting up the Debezium Dockerfile using:

    environment:
      JAVA_OPTS: -Dfile.encoding=UTF-8
    

    which is effectively a java environment variable.

    Tested on Debezium 1.7.1.Final.