Skip to content

Commit

Permalink
Merge pull request #92 from herodotdigital/ios_encoding_fix
Browse files Browse the repository at this point in the history
fix: change encoding from ascii to utf8
  • Loading branch information
cb-haripriyan committed Jul 26, 2024
2 parents 97595d3 + 19c7cab commit 31be19f
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 31be19f

Please sign in to comment.