{"action":"opened","issue":{"url":"https://api.github.com/repos/rubytaiwan/AMA/issues/68","labels_url":"https://api.github.com/repos/rubytaiwan/AMA/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/rubytaiwan/AMA/issues/68/comments","events_url":"https://api.github.com/repos/rubytaiwan/AMA/issues/68/events","html_url":"https://github.com/rubytaiwan/AMA/issues/68","id":113502151,"number":68,"title":"想請教一下, Ruby 2.2 中文編碼utf8轉big5碼問題。","user":{"login":"afgnsu","id":7204469,"avatar_url":"https://avatars.githubusercontent.com/u/7204469?v=3","gravatar_id":"","url":"https://api.github.com/users/afgnsu","html_url":"https://github.com/afgnsu","followers_url":"https://api.github.com/users/afgnsu/followers","following_url":"https://api.github.com/users/afgnsu/following{/other_user}","gists_url":"https://api.github.com/users/afgnsu/gists{/gist_id}","starred_url":"https://api.github.com/users/afgnsu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afgnsu/subscriptions","organizations_url":"https://api.github.com/users/afgnsu/orgs","repos_url":"https://api.github.com/users/afgnsu/repos","events_url":"https://api.github.com/users/afgnsu/events{/privacy}","received_events_url":"https://api.github.com/users/afgnsu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-27T04:00:04Z","updated_at":"2015-10-27T04:00:04Z","closed_at":null,"body":"如題，我試了好幾個方法，但是都失敗....本來在Ruby 1.8.7 都正常，但是換到 Ruby 2.2就不行 >\"<\r\n\r\n簡訊發送程式請參考：\r\n\r\nrequire 'net/http'\r\nrequire 'uri'\r\nrequire 'cgi'\r\n@message = '簡訊測試abc123'\r\n@message = CGI::escape(@message[0,70].to_s)\r\nurl = \"http://api.message.net.tw/send.php?id=username&password=123456&tel=0911222333&encoding=big5&mtype=P&msg=\" + @msg \r\nNet::HTTP.get(URI.parse(url))\r\n\r\n結果簡訊可以送出，但是內容是空白！\r\n\r\n另外請教一下，我在 rails console 底下想要 require 這些模組，居然都失敗！為何會這樣？\r\n\r\n![2015-10-27 11 58 09](https://cloud.githubusercontent.com/assets/7204469/10749146/18e722be-7ca2-11e5-8efa-02aa3687edf4.png)\r\n"}}