-
Notifications
You must be signed in to change notification settings - Fork 47
"Unable to convert data to string around character" error while requesting consent info #13
Comments
Hi, Can you capture the response and perhaps provide a sample project? We are unable to reproduce this error locally. Thanks Sam |
Tested with SDK version 1.0.1, issue is still the same.
|
Already found the issue by myself. There is encoding problem. According to official Apple docs the method
But data in response is encoded with CP1251. That is not supported by this method. As the solution I can offer next code:
instead of existing:
This code works for me. |
I can reproduce this error using real device but not in simulator |
has this issue been fixed ? why does it fail only on 10.3.3 and 11.3 ? if apple only supports "UTF-8, UTF-16LE, UTF-16BE, UTF-32LE, UTF-32BE" then how is it even working at all with CP1251 on non 10.1 and 11.3 devices & how come mine says charset=ISO-8859-1 and not windows1251? @hei9gag @accidbright |
I was trying to detect EEA user with this SDK, but found strange behavior. When user is not EEA, SDK works well both simulator and device. When user is EEA, it works correctly only on simulator. Trying to run at the device (tested on both iOS 10.3.3 and iOS 11.3 versions) and it fails
Here is my source
And it produces next log:
I found out that error occurs during response parsing:
Source was taken from cocoapods, version 1.0.0
The text was updated successfully, but these errors were encountered: