Code Monkey home page Code Monkey logo

Comments (6)

Jehan avatar Jehan commented on July 21, 2024

Hi,

On Wed, Jan 20, 2016 at 3:22 PM, Xijian Yan [email protected]
wrote:

I encountered an issue when I try to use uchardet to detect a file almost
all English(a very little Chinese)
The file is GB18030 encoded but detected as WINDOWS-1252

Could you send the file and make a bug report about it?
I'll have a look when I can. Thanks!

Jehan


Reply to this email directly or view it on GitHub
#23.

from uchardet.

yanxijian avatar yanxijian commented on July 21, 2024

@Jehan I'm home now. I will send it to you at work tomorrow. Thanks for concerns. :)

from uchardet.

yanxijian avatar yanxijian commented on July 21, 2024

my love gbk.txt
Hi, @Jehan .That's the file.

from uchardet.

Jehan avatar Jehan commented on July 21, 2024

Ok I had a quick look. It looks like the current implementation only even tries to detect GB18030 when the escape characters are used, which is not the case of your file. Apparently there are several ways to encode the same characters, sometimes with escape characters, sometimes not (from the few I can understand with a quick look on Wikipedia).

Also I guess that your file being mostly English, it does not help, statistically.

I'll need to have a closer look to the structure of this encoding later so that I can try and fix this. Thanks for the report!

from uchardet.

yanxijian avatar yanxijian commented on July 21, 2024

I read some articles. The reason might be using GBK or GB18030 characters in file encoded in GB2312. GB2312, GBK, GB18030 are all Simplified Chinese encoding. GB18030 is the latest.

from uchardet.

Jehan avatar Jehan commented on July 21, 2024

Moving bug reports to the new project hosting.
Work will happen there: https://bugs.freedesktop.org/show_bug.cgi?id=97521

from uchardet.

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.