Uploaded image for project: 'Debezium'
  1. Debezium
  2. DBZ-1941

LATIN1 Supported encoding

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Unresolved
    • Major
    • Backlog
    • 0.9.4.Final, 1.0.3.Final, 1.1.0.Final
    • postgresql-connector
    • None
    • 0
    • 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

          Activity

            People

              Unassigned Unassigned
              Iskz9802 Iskandar MA (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: