{"action":"created","issue":{"url":"https://api.github.com/repos/fastlane/supply/issues/26","labels_url":"https://api.github.com/repos/fastlane/supply/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/fastlane/supply/issues/26/comments","events_url":"https://api.github.com/repos/fastlane/supply/issues/26/events","html_url":"https://github.com/fastlane/supply/issues/26","id":122798636,"number":26,"title":"Error with posting data with 0x00FA character","user":{"login":"chrisvire","id":517814,"avatar_url":"https://avatars.githubusercontent.com/u/517814?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisvire","html_url":"https://github.com/chrisvire","followers_url":"https://api.github.com/users/chrisvire/followers","following_url":"https://api.github.com/users/chrisvire/following{/other_user}","gists_url":"https://api.github.com/users/chrisvire/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisvire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisvire/subscriptions","organizations_url":"https://api.github.com/users/chrisvire/orgs","repos_url":"https://api.github.com/users/chrisvire/repos","events_url":"https://api.github.com/users/chrisvire/events{/privacy}","received_events_url":"https://api.github.com/users/chrisvire/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"asfalcone","id":1848683,"avatar_url":"https://avatars.githubusercontent.com/u/1848683?v=3","gravatar_id":"","url":"https://api.github.com/users/asfalcone","html_url":"https://github.com/asfalcone","followers_url":"https://api.github.com/users/asfalcone/followers","following_url":"https://api.github.com/users/asfalcone/following{/other_user}","gists_url":"https://api.github.com/users/asfalcone/gists{/gist_id}","starred_url":"https://api.github.com/users/asfalcone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asfalcone/subscriptions","organizations_url":"https://api.github.com/users/asfalcone/orgs","repos_url":"https://api.github.com/users/asfalcone/repos","events_url":"https://api.github.com/users/asfalcone/events{/privacy}","received_events_url":"https://api.github.com/users/asfalcone/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2015-12-17T18:50:30Z","updated_at":"2015-12-21T16:20:03Z","closed_at":null,"body":"We are trying to post a full description with accented u (0x00FA).\r\n\r\nhttps://dl.dropboxusercontent.com/u/4049729/github/supply/full_description.txt\r\n\r\nHowever, supply fails when google-api-client tries to encode as US-ASCII (even though it is trying to load metadata for language 'es-419').  Do I need to create the file differently?\r\n\r\n```\r\n[17:59:26]: Loading metadata for language 'es-419'...\r\n/var/lib/gems/2.0.0/gems/google-api-client-0.8.6/lib/google/api_client/request.rb:342:in `encode': \"\\xFA\" on US-ASCII (Encoding::InvalidByteSequenceError)\r\n\tfrom /var/lib/gems/2.0.0/gems/google-api-client-0.8.6/lib/google/api_client/request.rb:342:in `to_json'\r\n\tfrom /var/lib/gems/2.0.0/gems/google-api-client-0.8.6/lib/google/api_client/request.rb:342:in `serialize_body'\r\n\tfrom /var/lib/gems/2.0.0/gems/google-api-client-0.8.6/lib/google/api_client/request.rb:93:in `initialize'\r\n\tfrom /var/lib/gems/2.0.0/gems/google-api-client-0.8.6/lib/google/api_client.rb:556:in `new'\r\n\tfrom /var/lib/gems/2.0.0/gems/google-api-client-0.8.6/lib/google/api_client.rb:556:in `generate_request'\r\n\tfrom /var/lib/gems/2.0.0/gems/google-api-client-0.8.6/lib/google/api_client.rb:621:in `execute!'\r\n\tfrom /var/lib/gems/2.0.0/gems/google-api-client-0.8.6/lib/google/api_client.rb:679:in `execute'\r\n\tfrom /var/lib/gems/2.0.0/gems/supply-0.2.2/lib/supply/client.rb:180:in `update_listing_for_language'\r\n\tfrom /var/lib/gems/2.0.0/gems/supply-0.2.2/lib/supply/listing.rb:25:in `save'\r\n\tfrom /var/lib/gems/2.0.0/gems/supply-0.2.2/lib/supply/uploader.rb:36:in `upload_metadata'\r\n\tfrom /var/lib/gems/2.0.0/gems/supply-0.2.2/lib/supply/uploader.rb:16:in `block in perform_upload'\r\n\tfrom /var/lib/gems/2.0.0/gems/supply-0.2.2/lib/supply/uploader.rb:11:in `foreach'\r\n\tfrom /var/lib/gems/2.0.0/gems/supply-0.2.2/lib/supply/uploader.rb:11:in `perform_upload'\r\n\tfrom /var/lib/gems/2.0.0/gems/supply-0.2.2/lib/supply/commands_generator.rb:37:in `block (2 levels) in run'\r\n\tfrom /var/lib/gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'\r\n\tfrom /var/lib/gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'\r\n\tfrom /var/lib/gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:153:in `run'\r\n\tfrom /var/lib/gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:428:in `run_active_command'\r\n\tfrom /var/lib/gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:68:in `run!'\r\n\tfrom /var/lib/gems/2.0.0/gems/commander-4.3.5/lib/commander/delegates.rb:15:in `run!'\r\n\tfrom /var/lib/gems/2.0.0/gems/supply-0.2.2/lib/supply/commands_generator.rb:55:in `run'\r\n\tfrom /var/lib/gems/2.0.0/gems/supply-0.2.2/lib/supply/commands_generator.rb:15:in `start'\r\n\tfrom /var/lib/gems/2.0.0/gems/supply-0.2.2/bin/supply:6:in `<top (required)>'\r\n\tfrom /usr/local/bin/supply:23:in `load'\r\n\tfrom /usr/local/bin/supply:23:in `<main>'\r\n```"},"comment":{"url":"https://api.github.com/repos/fastlane/supply/issues/comments/166347905","html_url":"https://github.com/fastlane/supply/issues/26#issuecomment-166347905","issue_url":"https://api.github.com/repos/fastlane/supply/issues/26","id":166347905,"user":{"login":"chrisvire","id":517814,"avatar_url":"https://avatars.githubusercontent.com/u/517814?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisvire","html_url":"https://github.com/chrisvire","followers_url":"https://api.github.com/users/chrisvire/followers","following_url":"https://api.github.com/users/chrisvire/following{/other_user}","gists_url":"https://api.github.com/users/chrisvire/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisvire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisvire/subscriptions","organizations_url":"https://api.github.com/users/chrisvire/orgs","repos_url":"https://api.github.com/users/chrisvire/repos","events_url":"https://api.github.com/users/chrisvire/events{/privacy}","received_events_url":"https://api.github.com/users/chrisvire/received_events","type":"User","site_admin":false},"created_at":"2015-12-21T16:20:03Z","updated_at":"2015-12-21T16:20:03Z","body":"Do you know what character encoding is expected by google-api-client? I assume utf-8.  \r\n\r\nI see in lib/supply/uploader.rb upload_metadata()\r\n\r\n    def upload_metadata(language, listing)\r\n      Helper.log.info \"Loading metadata for language '#{language}'...\"\r\n\r\n      Supply::AVAILABLE_METADATA_FIELDS.each do |key|\r\n        path = File.join(metadata_path, language, \"#{key}.txt\")\r\n        listing.send(\"#{key}=\".to_sym, File.read(path)) if File.exist?(path)\r\n      end\r\n      listing.save\r\n    end\r\n\r\nFile.read, does that need to force an encoding?  See: http://stackoverflow.com/questions/2982677/ruby-1-9-invalid-byte-sequence-in-utf-8\r\nI know that question is for 1.9 and deploy is 2.0+, but there are answers for forcing encoding for 2.0+.\r\n\r\nChris"}}