-
July 7th, 2015, 03:07 PM
#1
Characters encoding issue [iOS]
Hello,
We have noticed some odd encoding issue here.
The server sends a base64 encoded string that includes the sequence: U+b50.
But when iOS client retrieves it using NSSString *text = [updateInfo currentValueOfFieldName:@"data"], this sequence simply appears as 딋.
Of course, this breaks the whole base64 decoding thing.
Can you please advise?
We are using iOS client LS iOS SDK v.1.2.6 (LS 5.1.2.).
P.S. It works fine using the Javascript client
Thank you,
Nathan
-
July 8th, 2015, 08:30 AM
#2
Hello Anatoly,
I can't reproduce the problem at the moment, but my guess is that the sequence contains some other character before (probably a backslash) that triggers a Unicode conversion. Could you give us a complete base 64 sequence that exhibits the problem?
Thanks.
Best regards,
Gianluca
-
July 8th, 2015, 08:33 AM
#3
Hi,
I'm working with Anatoly on this.
You're right, the sequence contains a backslash also. The full base64 string is too long to paste here, but even this simple string causes problems:
a/bU+1002
BR,
Dejan
-
July 8th, 2015, 09:01 AM
#4
Yes, with this one the problem is reproducible, thanks.
I will let you know as soon as possible.
Best regards,
Gianluca
-
July 8th, 2015, 02:02 PM
#5
Hi Nathan and Dejan,
May you please contact support@lightstreamer.com specifying the client-id of your license, so that we can support you in the best possible way?
Thanks,
Alessandro
-
July 9th, 2015, 05:54 PM
#6
A patch is now available and will be part of the next public release. In the meanwhile, customers can get the patched lib by contacting the support team. Thanks.
Similar Threads
-
By vbolbobl in forum General
Replies: 1
Last Post: January 20th, 2014, 09:21 AM
-
By LS_Developer in forum Client SDKs
Replies: 3
Last Post: February 14th, 2013, 02:47 PM
-
By mibrahim.youxel in forum Client SDKs
Replies: 4
Last Post: December 3rd, 2012, 09:49 AM
-
By bor306 in forum Client SDKs
Replies: 7
Last Post: July 11th, 2012, 02:28 PM
-
By Alessandro in forum Client SDKs
Replies: 0
Last Post: March 28th, 2011, 03:06 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 04:17 PM.
Bookmarks