tenderlove/nokogiri — Issue #553: [Bug?] unknown encoding ASCII-8BIT
Author: bogdan
Created: 2011-10-16 17:01:40+00:00
State: open

I am using ruby 1.9.3-preview1 and nokogiri 1.5.0.

``` ruby
require "nokogiri"

s = ""
puts Nokogiri::HTML::DocumentFragment.parse("e#{s}").to_s.inspect
```

That produces:

```
output error : unknown encoding ASCII-8BIT
""
```

It is very strange that if empty string is inserted inline `"e#{""}"` - there is no error.

libxml `2.7.8.dfsg-2ubuntu0.1`