From 19c7cab84a5a16014a357cf5f98578203ff4ada3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20Zie=CC=A8tek?= Date: Wed, 10 Apr 2024 12:24:36 +0200 Subject: [PATCH] fix: change encoding from ascii to utf8 --- ios/Classes/SwiftChargebeeFlutterSdkPlugin.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ios/Classes/SwiftChargebeeFlutterSdkPlugin.swift b/ios/Classes/SwiftChargebeeFlutterSdkPlugin.swift index 97423c1..e033889 100644 --- a/ios/Classes/SwiftChargebeeFlutterSdkPlugin.swift +++ b/ios/Classes/SwiftChargebeeFlutterSdkPlugin.swift @@ -78,7 +78,7 @@ public class SwiftChargebeeFlutterSdkPlugin: NSObject, FlutterPlugin { withJSONObject:dict, options: []) { if let jsonString = String(data: data, - encoding: .ascii) { + encoding: .utf8) { _result(jsonString) } }else { @@ -120,7 +120,7 @@ public class SwiftChargebeeFlutterSdkPlugin: NSObject, FlutterPlugin { withJSONObject:dict, options: []) { if let jsonString = String(data: data, - encoding: .ascii) { + encoding: .utf8) { _result(jsonString) } }else { @@ -152,7 +152,7 @@ public class SwiftChargebeeFlutterSdkPlugin: NSObject, FlutterPlugin { withJSONObject: product.product.toMap(), options: []) { if let jsonString = String(data: theJSONData, - encoding: .ascii) { + encoding: .utf8) { array.append(jsonString) } } @@ -173,7 +173,7 @@ public class SwiftChargebeeFlutterSdkPlugin: NSObject, FlutterPlugin { withJSONObject:dataWrapper.ids, options: []) { if let jsonString = String(data: data, - encoding: .ascii) { + encoding: .utf8) { _result(jsonString) } }else {