From feb3dce3017f3d7cbf7e63d09b8a22f40c02ec72 Mon Sep 17 00:00:00 2001 From: Teddy Schmitz Date: Thu, 10 Oct 2019 08:32:57 +0100 Subject: [PATCH] Dataprocessing lambda should use utf8 instead of ascii --- DataProcessing/guide/content/stream-processing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DataProcessing/guide/content/stream-processing.md b/DataProcessing/guide/content/stream-processing.md index 1b164b7b..434835f2 100644 --- a/DataProcessing/guide/content/stream-processing.md +++ b/DataProcessing/guide/content/stream-processing.md @@ -161,7 +161,7 @@ environment variable with the key `TABLE_NAME` and the value function buildRequestItems(records) { return records.map((record) => { - const json = Buffer.from(record.kinesis.data, 'base64').toString('ascii'); + const json = Buffer.from(record.kinesis.data, 'base64').toString('utf8'); const item = JSON.parse(json); return {