Browse Source

explicitly set charset

B. Petersen 2 years ago
parent
commit
23df8aff33
1 changed files with 1 additions and 1 deletions
  1. 1 1
      deltachat-ios/Controller/WebxdcViewController.swift

+ 1 - 1
deltachat-ios/Controller/WebxdcViewController.swift

@@ -354,7 +354,7 @@ extension WebxdcViewController: WKURLSchemeHandler {
                 let lastKnownSerial = Int(url.query ?? "0") ?? 0
                 let lastKnownSerial = Int(url.query ?? "0") ?? 0
                 data = Data(
                 data = Data(
                     dcContext.getWebxdcStatusUpdates(msgId: messageId, lastKnownSerial: lastKnownSerial).utf8)
                     dcContext.getWebxdcStatusUpdates(msgId: messageId, lastKnownSerial: lastKnownSerial).utf8)
-                mimeType = "application/json"
+                mimeType = "application/json; charset=utf-8"
                 statusCode = 200
                 statusCode = 200
             } else {
             } else {
                 let file = url.path
                 let file = url.path