Skip to content

Commit

Permalink
fix: change encoding from ascii to utf8
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamil Ziętek committed Apr 10, 2024
1 parent c04b3a1 commit 19c7cab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ios/Classes/SwiftChargebeeFlutterSdkPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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)
}
}
Expand All @@ -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 {
Expand Down

0 comments on commit 19c7cab

Please sign in to comment.