Comments (9)
@taganaka @tmaier, For some reason, if I use the code below in 0.5.0 non english unicode characters would show properly
def doc
return @doc if @doc
@doc = Nokogiri::HTML(@body) if @body && html? rescue nil
end
however this one would not. I'm not so sure what this function intended to do solve. Any suggestion is appreciated as I like to use 0.5.0 without monkey patching to the gem on my server. Thanks a lot.
def doc
return @doc if @doc
@body ||= ''
@body = @body.encode('utf-8', 'binary', invalid: :replace,
undef: :replace, replace: '')
@doc = Nokogiri::HTML(@body.toutf8, nil, 'utf-8') if @body && html?
end
from polipus.
Text inside <title> appear correctly in 0.4.0
<title>လူကုန်ကူးခံရသူတွေရဲ့ဘဝခရီး - BBC ပင်မစာမျက်နှာ</title>
Text inside <title> gone in 0.5.0. Only English text remains.
<title> - BBC </title>
from polipus.
I'll take a look at this soon
Thanks for reporting
from polipus.
Thank you.
Sent from my iPhone
On Aug 31, 2015, at 3:32 AM, Francesco Laurita [email protected] wrote:
I'll take a look at this soon
Thanks for reporting
—
Reply to this email directly or view it on GitHub.
from polipus.
Hi taganaka, Please let me know if you had a chance to look into?
from polipus.
I am trying to upgrade to 0.5.1 and saw the same issue.
This is a regression of #40.
from polipus.
I don't think this project is maintained anymore.
from polipus.
from polipus.
Ok Great. I didn't see activity for nearly 2 years so just thought it was not maintained anymore.
from polipus.
Related Issues (20)
- #queue_overflow_adapter and #overflow_adapter; Same thing? HOT 1
- Robots.txt option HOT 3
- Change logging format HOT 1
- Internet connection lost; Page still stored and processed HOT 6
- Show code coverage and results of quality analysis
- Gzip decoded body not used anywhere HOT 1
- Fails when response["Set-Cookie"] is nil HOT 3
- invalid byte sequence in US-ASCII (ArgumentError)
- Whitelist start urls? HOT 1
- Kill s3 entirely, use Fog, yo!
- Cannot install on JRuby 1.7.13. Error with bson_ext-1.9.2 HOT 9
- SocketError could mean, domain is gone or no internet connection
- Cannot use with mongoid ~> 4.0.0 HOT 5
- RethinkDB Storage HOT 2
- Anchor links converted to %23 causing 404 errors
- Support for other charsets than UTF-8 HOT 1
- [Question] Using MongoDB as 'cache' aside of Redis
- Support for headless crawling
- Make it work with Mongo 2.x HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from polipus.