{"action":"closed","issue":{"url":"https://api.github.com/repos/sparklemotion/nokogiri/issues/1659","repository_url":"https://api.github.com/repos/sparklemotion/nokogiri","labels_url":"https://api.github.com/repos/sparklemotion/nokogiri/issues/1659/labels{/name}","comments_url":"https://api.github.com/repos/sparklemotion/nokogiri/issues/1659/comments","events_url":"https://api.github.com/repos/sparklemotion/nokogiri/issues/1659/events","html_url":"https://github.com/sparklemotion/nokogiri/issues/1659","id":238702024,"number":1659,"title":"default encoding changed from UTF-8 to ASCII-8BIT (1.7.2 - 1.8.0)","user":{"login":"rabbitt","id":156813,"avatar_url":"https://avatars3.githubusercontent.com/u/156813?v=4","gravatar_id":"","url":"https://api.github.com/users/rabbitt","html_url":"https://github.com/rabbitt","followers_url":"https://api.github.com/users/rabbitt/followers","following_url":"https://api.github.com/users/rabbitt/following{/other_user}","gists_url":"https://api.github.com/users/rabbitt/gists{/gist_id}","starred_url":"https://api.github.com/users/rabbitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rabbitt/subscriptions","organizations_url":"https://api.github.com/users/rabbitt/orgs","repos_url":"https://api.github.com/users/rabbitt/repos","events_url":"https://api.github.com/users/rabbitt/events{/privacy}","received_events_url":"https://api.github.com/users/rabbitt/received_events","type":"User","site_admin":false},"labels":[{"id":25234,"url":"https://api.github.com/repos/sparklemotion/nokogiri/labels/encoding","name":"encoding","color":"7a7676","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-06-26T23:59:50Z","updated_at":"2017-11-13T19:08:27Z","closed_at":"2017-11-13T19:08:27Z","author_association":"NONE","body":"## If this isn't an installation issue ...\r\n\r\n**What problems are you experiencing?**\r\n\r\nThe default document encoding seems to have switched from UTF-8 to ASCII-8BIT between version 1.7.2 and 1.8.0 (using jruby 9.1.12.0).\r\n\r\n**What's the output from `nokogiri -v`?**\r\n\r\nThese were run on OSX, but the same problem exists when running this on CentOS 7 with the following `description` from `nokogiri -v`\r\n\r\n`\r\n      description: jruby 9.1.12.0 (2.3.3) 2017-06-23 a053617 OpenJDK 64-Bit Server VM\r\n        24.141-b02 on 1.7.0_141-mockbuild_2017_05_09_15_35-b00 +jit [linux-x86_64]\r\n`\r\n# Nokogiri (1.7.2)\r\n    ---\r\n    warnings: []\r\n    nokogiri: 1.7.2\r\n    ruby:\r\n      version: 2.3.3\r\n      platform: java\r\n      description: jruby 9.1.12.0 (2.3.3) 2017-06-15 33c6439 Java HotSpot(TM) 64-Bit Server\r\n        VM 25.131-b11 on 1.8.0_131-b11 +jit [darwin-x86_64]\r\n      engine: jruby\r\n      jruby: 9.1.12.0\r\n    xerces: Xerces-J 2.11.0\r\n    nekohtml: NekoHTML 1.9.21\r\n\r\nand\r\n\r\n# Nokogiri (1.8.0)\r\n    ---\r\n    warnings: []\r\n    nokogiri: 1.8.0\r\n    ruby:\r\n      version: 2.3.3\r\n      platform: java\r\n      description: jruby 9.1.12.0 (2.3.3) 2017-06-15 33c6439 Java HotSpot(TM) 64-Bit Server\r\n        VM 25.131-b11 on 1.8.0_131-b11 +jit [darwin-x86_64]\r\n      engine: jruby\r\n      jruby: 9.1.12.0\r\n    xerces: Xerces-J 2.11.0\r\n    nekohtml: NekoHTML 1.9.21\r\n\r\n**Can you provide a self-contained script that reproduces what you're seeing?**\r\n\r\n`jruby -e 'gem \"nokogiri\", \"= 1.7.2\"; require \"nokogiri\"; puts \"encoding: #{Nokogiri::HTML::Document.new.to_s.encoding}\"'`\r\n\r\nWhich outputs: `encoding: UTF-8`\r\n\r\n`jruby -e 'gem \"nokogiri\", \"= 1.8.0\"; require \"nokogiri\"; puts \"encoding: #{Nokogiri::HTML::Document.new.to_s.encoding}\"'`\r\n\r\nWhich outputs: `encoding: ASCII-8BIT`"}}
{"actor":{"display_login":"flavorjones"}}