Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • U uchardet
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 14
    • Issues 14
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • uchardet
  • uchardet
  • Issues
  • #9
Closed
Open
Issue created Feb 26, 2019 by Rustam Sayfutdinov@rstm-sf

Wrong detected encoding utf-8 instead of cp855

Hello!

I found an example where uchardet wrong detected encoding utf-8 instead of cp855.

I debuged my usage (in this for-loop):

  • multi-byte prober: utf-8 with confidence = 0.752499998
  • single-byte prober: cp855 with confidence = 0.685687244

Using a different the implementation by UTF Unknown, I got the expected result:

  • multi-byte prober: only check and get GB18030Prober object with confidence = 0.01
  • single-byte prober: cp855 with confidence = 0.8776797
Edited Feb 26, 2019 by Rustam Sayfutdinov
Assignee
Assign to
Time tracking