Results 1 to 6 of 6
  1. #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

  2. #2
    Administrator
    Join Date
    Feb 2012
    Location
    Bologna, Italy
    Posts
    102
    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

  3. #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

  4. #4
    Administrator
    Join Date
    Feb 2012
    Location
    Bologna, Italy
    Posts
    102
    Yes, with this one the problem is reproducible, thanks.

    I will let you know as soon as possible.
    Best regards,

    Gianluca

  5. #5
    Administrator
    Join Date
    Jul 2006
    Location
    Milan, Italy
    Posts
    521
    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

  6. #6
    Administrator
    Join Date
    Jul 2006
    Location
    Milan, Italy
    Posts
    521
    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

  1. Live Video Encoding Services
    By vbolbobl in forum General
    Replies: 1
    Last Post: January 20th, 2014, 10:21 AM
  2. iOS client API encoding issue
    By LS_Developer in forum Client SDKs
    Replies: 3
    Last Post: February 14th, 2013, 03:47 PM
  3. LS iOS LSCommand mode sample
    By mibrahim.youxel in forum Client SDKs
    Replies: 4
    Last Post: December 3rd, 2012, 10:49 AM
  4. Bandwidth in iOS
    By bor306 in forum Client SDKs
    Replies: 7
    Last Post: July 11th, 2012, 03:28 PM
  5. iOS Client Library Preview
    By Alessandro in forum Client SDKs
    Replies: 0
    Last Post: March 28th, 2011, 04:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 06:02 PM.