Giter Site home page Giter Site logo

Comments (4)

dan-blanchard avatar dan-blanchard commented on May 29, 2024

@sigmavirus24 Is this something you fixed? I'm trying to migrate old issues over to our new repo.

from chardet.

sigmavirus24 avatar sigmavirus24 commented on May 29, 2024

@dan-blanchard no, the issue in that commit refers to sv24-archive#8

from chardet.

dan-blanchard avatar dan-blanchard commented on May 29, 2024

@mlissner I don't actually see this mapping you speak of in the latest version of the HTML5 spec:
http://www.w3.org/html/wg/drafts/html/master/single-page.html#character-encodings

That said, I do think always returning CP1252 instead of Latin-1 is advisable because it gets you the quotes and things that Latin-1 doesn't, and one almost never encounters documents that purposefully have the replaced control characters in them.

from chardet.

mlissner avatar mlissner commented on May 29, 2024

Well... My internet connection is so slow here I can't download the whole
spec, but it might be in chapter eight? I can get the TOC, but downloading
past chapter four is killing me.

Anyway, yeah, I filed this bug after encountering a page that was reporting
Latin-1 when it had cp1252 characters, and I realized there's almost no
reason to ever return Latin-1 anymore.
On Dec 21, 2013 3:16 AM, "Dan Blanchard" [email protected] wrote:

@mlissner https://github.com/mlissner I don't actually see this mapping
you speak of in the latest version of the HTML5 spec:

http://www.w3.org/html/wg/drafts/html/master/single-page.html#character-encodings

That said, I do think always returning CP1252 instead of Latin-1 is
advisable because it gets you the quotes and things that Latin-1 doesn't,
and one almost never encounters documents that purposefully have the
replaced control characters in them.


Reply to this email directly or view it on GitHubhttps://github.com//issues/8#issuecomment-31011860
.

from chardet.

Related Issues (3)

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.