Details
-
Feature Request
-
Resolution: Unresolved
-
Major
-
0.9.4.Final, 1.0.3.Final, 1.1.0.Final
-
None
-
0
-
0%
Description
Would like debezium postgresql connetor to support latin1 encoding (iso 88591) or any other custom encoding.
As a workaround, at our company, we amended the following to support LATIN1 encoding
1. NonStreamingWal2JsonMessageDecoder.java
LINE 51:
– final byte[] source = buffer.array(); // old line
++ byte[] content = Arrays.copyOfRange(source, buffer.arrayOffset(), source.length);
++ content = new String(content, StandardCharsets.ISO_8859_1).getBytes(StandardCharsets.UTF_8);
2. StreamingWal2JsonMessageDecoder.java
LINE 114:
– final byte[] source = buffer.array(); // old line
++ byte[] content = Arrays.copyOfRange(source, buffer.arrayOffset(), source.length);
++ content = new String(content, StandardCharsets.ISO_8859_1).getBytes(StandardCharsets.UTF_8);
Attachments
Issue Links
- is related to
-
DBZ-1940 [PostgresValueConverter] java.util.NoSuchElementException: No value present
- Open