diff --git a/packages/server/src/utils/joplinUtils.ts b/packages/server/src/utils/joplinUtils.ts index 957b51fa0..bfe4d0d1f 100644 --- a/packages/server/src/utils/joplinUtils.ts +++ b/packages/server/src/utils/joplinUtils.ts @@ -218,7 +218,7 @@ async function renderNote(share: Share, note: NoteEntity, resourceInfos: Resourc return { body: bodyHtml, mime: 'text/html', - size: bodyHtml.length, + size: Buffer.byteLength(bodyHtml, 'utf-8'), }; }