{"action":"created","issue":{"url":"https://api.github.com/repos/pieroxy/lz-string/issues/90","repository_url":"https://api.github.com/repos/pieroxy/lz-string","labels_url":"https://api.github.com/repos/pieroxy/lz-string/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/pieroxy/lz-string/issues/90/comments","events_url":"https://api.github.com/repos/pieroxy/lz-string/issues/90/events","html_url":"https://github.com/pieroxy/lz-string/issues/90","id":218856126,"number":90,"title":"Can you add base91 support to lz-string?","user":{"login":"joeshae","id":6749515,"avatar_url":"https://avatars0.githubusercontent.com/u/6749515?v=4","gravatar_id":"","url":"https://api.github.com/users/joeshae","html_url":"https://github.com/joeshae","followers_url":"https://api.github.com/users/joeshae/followers","following_url":"https://api.github.com/users/joeshae/following{/other_user}","gists_url":"https://api.github.com/users/joeshae/gists{/gist_id}","starred_url":"https://api.github.com/users/joeshae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joeshae/subscriptions","organizations_url":"https://api.github.com/users/joeshae/orgs","repos_url":"https://api.github.com/users/joeshae/repos","events_url":"https://api.github.com/users/joeshae/events{/privacy}","received_events_url":"https://api.github.com/users/joeshae/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-04-03T08:00:02Z","updated_at":"2017-09-13T11:29:28Z","closed_at":null,"author_association":"NONE","body":"@pieroxy , can you add base91 support to lz-string?\r\nThank you!"},"comment":{"url":"https://api.github.com/repos/pieroxy/lz-string/issues/comments/329139227","html_url":"https://github.com/pieroxy/lz-string/issues/90#issuecomment-329139227","issue_url":"https://api.github.com/repos/pieroxy/lz-string/issues/90","id":329139227,"user":{"login":"Prabh2k7","id":31923375,"avatar_url":"https://avatars2.githubusercontent.com/u/31923375?v=4","gravatar_id":"","url":"https://api.github.com/users/Prabh2k7","html_url":"https://github.com/Prabh2k7","followers_url":"https://api.github.com/users/Prabh2k7/followers","following_url":"https://api.github.com/users/Prabh2k7/following{/other_user}","gists_url":"https://api.github.com/users/Prabh2k7/gists{/gist_id}","starred_url":"https://api.github.com/users/Prabh2k7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Prabh2k7/subscriptions","organizations_url":"https://api.github.com/users/Prabh2k7/orgs","repos_url":"https://api.github.com/users/Prabh2k7/repos","events_url":"https://api.github.com/users/Prabh2k7/events{/privacy}","received_events_url":"https://api.github.com/users/Prabh2k7/received_events","type":"User","site_admin":false},"created_at":"2017-09-13T11:29:28Z","updated_at":"2017-09-13T11:29:28Z","author_association":"NONE","body":"I think what @joeshae facing is still exist in LZString side. \r\nFyi below are the problem I am facing and I am desperate to find the solution.\r\n\r\n I have following (ugly)characters. And I am trying to send this from client(Javascript) side to server(Java). Following are the image data as \"compressed\" I am sending to server.\r\n javascript code :\r\n\r\nfunction callServer() {\r\n    debugger;\r\n    var compressed = LZString.compress('/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAA0JCgsKCA0LCgsODg0PEyAVExISEyccHhcgLikxMC4pLSwzOko+MzZGNywtQFdBRkxOUlNSMj5aYVpQYEpRUk');\r\n    alert('compressed : '+compressed);\r\n    var formData = \"img=\"+compressed;\r\n        jQuery.ajax({\r\n                url : \"/RegisterServlet/servlet/Register\",\r\n            type: \"POST\",\r\n            data : formData,\r\n            cache: false,\r\n            async:false,\r\n            success: function() {\r\n            },\r\n            error: function (){\r\n            }\r\n          });       \r\n     }\r\n\r\n\r\nJava code \r\n`public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException\r\n{\r\n    request.setCharacterEncoding(encoding);\r\n    String compressedData = request.getParameter(\"img\");\r\n    String decompress = LZString.decompress(compressedData);\r\n}`\r\n\r\nAs per above code, I can able to receive the input I sent from script side to java as compressedData as follow : received broken/changes chars\r\n\r\nBut As you can see the red marked item on above attachment some of the images I sent are broken or become \"?\" mark or some different looks.\r\n\r\nBut I require to get the exact image data which sent?\r\nFyr, the input and output: \r\n\r\n![brokenimages](https://user-images.githubusercontent.com/31923375/30375071-dc22df50-98a4-11e7-8fb6-f54b18524fc7.PNG)\r\n![uglychars](https://user-images.githubusercontent.com/31923375/30375072-dc24867a-98a4-11e7-973b-212b79a8aeb6.PNG)\r\n\r\n\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"Prabh2k7"}}