We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SimpleScanViewController displays garbled characters in languages such as Chinese
SimpleScanViewController.swift line 270
if let attributedString = try? NSAttributedString(data: stringData, options: [.documentType: NSAttributedString.DocumentType.html], documentAttributes: nil) { privacyLinkText.attributedText = attributedString }
All versions.
Podfile
22.8.2
How to Fix: Add parameter .characterEncoding and set it to utf8 when html decoding Example:
if let attributedString = try? NSAttributedString(data: stringData, options: [.documentType: NSAttributedString.DocumentType.html, .characterEncoding: NSNumber(value: String.Encoding.utf8.rawValue)], documentAttributes: nil) { privacyLinkText.attributedText = attributedString }
The text was updated successfully, but these errors were encountered:
Hi @lszzy,
Thank you for reporting this. We just released a fix for this issue in v22.8.3: https://github.com/stripe/stripe-ios/releases/tag/22.8.3
Sorry, something went wrong.
No branches or pull requests
Summary
SimpleScanViewController displays garbled characters in languages such as Chinese
Code to reproduce
SimpleScanViewController.swift line 270
iOS version
All versions.
Installation method
Podfile
SDK version
22.8.2
Other information
How to Fix: Add parameter .characterEncoding and set it to utf8 when html decoding
Example:
The text was updated successfully, but these errors were encountered: