Commit 9c512ef
Fix garbled text in Wiki (#177)
GitHub fixes GH-176
The default value for encoding in `Nokogiri::HTML::SAX::Parser.new` has
changed since Nokogiri 1.17.0.
* 1.16.8:
https://github.com/sparklemotion/nokogiri/blob/v1.16.8/lib/nokogiri/xml/sax/parser.rb#L72
* `def initialize(doc = Nokogiri::XML::SAX::Document.new, encoding =
"UTF-8")`
* 1.17.0:
https://github.com/sparklemotion/nokogiri/blob/v1.17.0/lib/nokogiri/xml/sax/parser.rb#L95
* `def initialize(doc = Nokogiri::XML::SAX::Document.new, encoding =
nil)`
*
sparklemotion/nokogiri@35596e7#diff-116e772eb2e47bb59e0798183732d07ef3312e480c764a6dc34b09f743a73f8c
This causes the encoding to be unspecified, resulting in garbled text.
Therefore, we changed it to specify `html.encoding`.
---------
Co-authored-by: Sutou Kouhei <kou@cozmixng.org>1 parent 0de387e commit 9c512ef
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
0 commit comments