{"action":"created","issue":{"url":"https://api.github.com/repos/dan200/ComputerCraft/issues/67","labels_url":"https://api.github.com/repos/dan200/ComputerCraft/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/dan200/ComputerCraft/issues/67/comments","events_url":"https://api.github.com/repos/dan200/ComputerCraft/issues/67/events","html_url":"https://github.com/dan200/ComputerCraft/issues/67","id":122935826,"number":67,"title":"[1.76pr6] String Bugs","user":{"login":"BombBloke","id":12162603,"avatar_url":"https://avatars.githubusercontent.com/u/12162603?v=3","gravatar_id":"","url":"https://api.github.com/users/BombBloke","html_url":"https://github.com/BombBloke","followers_url":"https://api.github.com/users/BombBloke/followers","following_url":"https://api.github.com/users/BombBloke/following{/other_user}","gists_url":"https://api.github.com/users/BombBloke/gists{/gist_id}","starred_url":"https://api.github.com/users/BombBloke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BombBloke/subscriptions","organizations_url":"https://api.github.com/users/BombBloke/orgs","repos_url":"https://api.github.com/users/BombBloke/repos","events_url":"https://api.github.com/users/BombBloke/events{/privacy}","received_events_url":"https://api.github.com/users/BombBloke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":20,"created_at":"2015-12-18T11:51:49Z","updated_at":"2015-12-19T15:49:19Z","closed_at":null,"body":"Not sure whether these count as \"bugs\", or even if it's practical/appropriate to \"fix\" them, but hey - let's recap.\r\n\r\nAt the moment:\r\n\r\n* All strings seem to send/receive correctly via modems (whereas they didn't used to; not sure when that got fixed, but hurray for that :+1:  ).\r\n* Strings also seem fine when passed through commands API functions; all characters can be passed in and (where relevant) read back in some form. :+1: \r\n* Strings saved via textmode file handles may have characters within certain ranges converted to ? (0x3F). :-1: \r\n* Strings affected by the above also can't be sent/received via the http API. :-1: \r\n\r\nAssuming this won't be fixed/changed/whatever such that \"all strings can be sent anywhere\", I suggest a couple of workarounds:\r\n\r\ntextutils.serialise could be rigged to convert eg \"ÿ\" to \"\\\"\\\\255\\\"\". textutils.unserialise is already capable of reverting this. (Edit: This is probably obvious to you, but leading zeros are important for numbers less than 100!)\r\n\r\ntextutils.urlEncode could be rigged to convert eg \"ÿ\" to \"%FF\"."},"comment":{"url":"https://api.github.com/repos/dan200/ComputerCraft/issues/comments/165997774","html_url":"https://github.com/dan200/ComputerCraft/issues/67#issuecomment-165997774","issue_url":"https://api.github.com/repos/dan200/ComputerCraft/issues/67","id":165997774,"user":{"login":"dan200","id":1956716,"avatar_url":"https://avatars.githubusercontent.com/u/1956716?v=3","gravatar_id":"","url":"https://api.github.com/users/dan200","html_url":"https://github.com/dan200","followers_url":"https://api.github.com/users/dan200/followers","following_url":"https://api.github.com/users/dan200/following{/other_user}","gists_url":"https://api.github.com/users/dan200/gists{/gist_id}","starred_url":"https://api.github.com/users/dan200/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dan200/subscriptions","organizations_url":"https://api.github.com/users/dan200/orgs","repos_url":"https://api.github.com/users/dan200/repos","events_url":"https://api.github.com/users/dan200/events{/privacy}","received_events_url":"https://api.github.com/users/dan200/received_events","type":"User","site_admin":false},"created_at":"2015-12-19T15:49:19Z","updated_at":"2015-12-19T15:49:19Z","body":"Ok, I've written a better test program that should uncover actual bugs only:\nhttp://pastebin.com/9QJKi0kp\n\nCould each of you run it and report your results? On my system (Mac), it\nonly shows 2 errors: one for each of the two newline characters.\n\nOn 19 December 2015 at 15:38, Bomb Bloke <notifications@github.com> wrote:\n\n> Indeed, most (likely all) of the \"errors\" in your results have to do with\n> me having no idea ComputerCraft was *supposed* to be performing certain\n> textmode conversions, so they mean exactly what you thought my results\n> meant: everything's probably ok, for you.\n>\n> Thank Wojbie, more results from other users should be useful. Your results\n> are similar to mine, but yeah, there are some obvious differences in there.\n>\n> Windows 8.1 x64\n> Forge 1.8, 11.14.4.1577\n> Java x64, 1.8.0_66 (just now updated from _40, same results).\n>\n> I'm afraid it's 2:30am here at present, so I may have to leave off for the\n> night. Thanks for looking into it.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/dan200/ComputerCraft/issues/67#issuecomment-165997286>\n> .\n>\n"}}