Skip to content

Commit 860a239

Browse files
committed
chore: specify charset when converting string to bytes
For consistency with other places where this is done Signed-off-by: Dale Lane <[email protected]>
1 parent 9ad88a1 commit 860a239

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/ibm/eventstreams/connect/mqsource/builders/JsonRecordBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public SchemaAndValue getValue(final JMSContext context, final String topic, fin
126126
if (recordBuilderSchemaSupport) {
127127
return converter.toConnectData(topic,
128128
// embed schema in the event payload
129-
(schemaSupportEnvelope + new String(payload) + "}").getBytes());
129+
(schemaSupportEnvelope + new String(payload) + "}").getBytes(UTF_8));
130130
} else {
131131
return converter.toConnectData(topic,
132132
// submit the payload as-is to the converter

0 commit comments

Comments
 (0)