Giter VIP home page Giter VIP logo

Comments (2)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 2, 2024
Relying on UTF-8 as the default would be plain wrong.

According to RFC 2616 (HTTP/1.1), ISO-8859-1 is the default charset encoding.
We're already relaxing it to Win Cp1252. 

If you need to change the default encoding for your setup, simply adjust the 
following line in the HTMLFetcher class:
        Charset cs = Charset.forName("Cp1252");

Original comment by ckkohl79 on 7 Jul 2011 at 1:45

  • Changed state: WontFix

from boilerpipe.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 2, 2024
I understand that defaulting to utf-8 could be wrong. 
However, when the source of 
http://www.buddymedia.com/newsroom/2011/06/hearst-magazines-digital-media-partne
rs-with-buddy-media-to-launch-a-scalable-social-platform-on-facebook-for-thirtee
n-hearst-brands/#more-10378 is passed as html string 'a' to 
ast.INSTANCE.getText(a) (where ast is an ArticleExtractor object), it creates 
the same problem. Input seems to be interpreted as Latin-1. How can that be 
fixed or How can I make it default to utf-8 ? 

Thanks.

Original comment by [email protected] on 2 Aug 2011 at 3:28

from boilerpipe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.