Giter Site home page Giter Site logo

get wrong codec about chardet HOT 2 CLOSED

chardet avatar chardet commented on June 11, 2024
get wrong codec

from chardet.

Comments (2)

asdfsx avatar asdfsx commented on June 11, 2024

find the problem
In 2.3.0, in SBCSGroupProber, the Latin2HungarianModel is still in use. And I think there may be sth wrong within the 'iso-8859-2' charset map.

So if disabled the Latin2HungarianModel , the result changed to "uff-8"

In latest version, the Latin2HungarianModel has been disabled, but add a new charset map Latin5TurkishModel, and the result is "iso-8859-9"

And I found , in uchardet, in nsSBCSGroupProber.cpp, Latin2HungarianModel is also disabled:

// disable latin2 before latin1 is available, otherwise all latin1
// will be detected as latin2 because of their similarity. 
// mProbers[10] = new nsSingleByteCharSetProber(&Latin2HungarianModel);
// mProbers[11] = new nsSingleByteCharSetProber(&Win1250HungarianModel);  

from chardet.

dan-blanchard avatar dan-blanchard commented on June 11, 2024

Sorry, I know I'm really behind on putting out a release with this fix in it.

from chardet.

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.