{"action":"created","issue":{"url":"https://api.github.com/repos/socketio/socket.io-client-swift/issues/308","repository_url":"https://api.github.com/repos/socketio/socket.io-client-swift","labels_url":"https://api.github.com/repos/socketio/socket.io-client-swift/issues/308/labels{/name}","comments_url":"https://api.github.com/repos/socketio/socket.io-client-swift/issues/308/comments","events_url":"https://api.github.com/repos/socketio/socket.io-client-swift/issues/308/events","html_url":"https://github.com/socketio/socket.io-client-swift/issues/308","id":133709141,"number":308,"title":"App crashed on iOS9 while reading utf8 data","user":{"login":"gen1us2k","id":153196,"avatar_url":"https://avatars.githubusercontent.com/u/153196?v=3","gravatar_id":"","url":"https://api.github.com/users/gen1us2k","html_url":"https://github.com/gen1us2k","followers_url":"https://api.github.com/users/gen1us2k/followers","following_url":"https://api.github.com/users/gen1us2k/following{/other_user}","gists_url":"https://api.github.com/users/gen1us2k/gists{/gist_id}","starred_url":"https://api.github.com/users/gen1us2k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gen1us2k/subscriptions","organizations_url":"https://api.github.com/users/gen1us2k/orgs","repos_url":"https://api.github.com/users/gen1us2k/repos","events_url":"https://api.github.com/users/gen1us2k/events{/privacy}","received_events_url":"https://api.github.com/users/gen1us2k/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-15T13:14:43Z","updated_at":"2016-02-15T15:02:29Z","closed_at":null,"body":"Hello. I have some problems while receiving cyrillic data on \"chat message\" event\r\n\r\n```\r\n    mutating func read(readLength: Int) -> String {\r\n        let readString = message[currentIndex..<currentIndex.advancedBy(readLength)]\r\n        advanceIndexBy(readLength)\r\n        return readString\r\n    }\r\n\r\nfatal error: can not increment endIndex\r\nat SocketStringReader struct\r\n```\r\nBut english words works well\r\nTest data:\r\nЫ\r\nПривет\r\nЙопта"},"comment":{"url":"https://api.github.com/repos/socketio/socket.io-client-swift/issues/comments/184243313","html_url":"https://github.com/socketio/socket.io-client-swift/issues/308#issuecomment-184243313","issue_url":"https://api.github.com/repos/socketio/socket.io-client-swift/issues/308","id":184243313,"user":{"login":"nuclearace","id":1211049,"avatar_url":"https://avatars.githubusercontent.com/u/1211049?v=3","gravatar_id":"","url":"https://api.github.com/users/nuclearace","html_url":"https://github.com/nuclearace","followers_url":"https://api.github.com/users/nuclearace/followers","following_url":"https://api.github.com/users/nuclearace/following{/other_user}","gists_url":"https://api.github.com/users/nuclearace/gists{/gist_id}","starred_url":"https://api.github.com/users/nuclearace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nuclearace/subscriptions","organizations_url":"https://api.github.com/users/nuclearace/orgs","repos_url":"https://api.github.com/users/nuclearace/repos","events_url":"https://api.github.com/users/nuclearace/events{/privacy}","received_events_url":"https://api.github.com/users/nuclearace/received_events","type":"User","site_admin":false},"created_at":"2016-02-15T15:02:29Z","updated_at":"2016-02-15T15:02:29Z","body":"Okay then it's probably because the golang version doesn't double encode utf8 like the node version does, in which case you'll have to make a change to the client.\r\n\r\nhttps://github.com/socketio/socket.io-client-swift/blob/master/Source/SocketFixUTF8.swift#L28 these methods should probably just immediatly return the string in your case"}}