Skip to content
  • Hjem
  • Seneste
  • Etiketter
  • Populære
  • Verden
  • Bruger
  • Grupper
Temaer
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Kollaps
FARVEL BIG TECH
inguin@nerdculture.deI

inguin@nerdculture.de

@inguin@nerdculture.de
About
Indlæg
1
Emner
0
Fremhævelser
0
Grupper
0
Følgere
0
Følger
0

Vis Original

Indlæg

Seneste Bedste Controversial

  • What's a good way to detect file encoding in python that's not chardet?
    inguin@nerdculture.deI inguin@nerdculture.de

    @marcusxms
    Any byte sequence is valid latin1, so there's no reliable way to detect it. You can only guess, maybe with the help of dictionaries or at least tables of characters that commonly appear within words.

    Depending on your usecase it may be enough to test for ASCII and UTF-8 first, and assume latin1 if both fail.

    Ikke-kategoriseret python
  • Log ind

  • Har du ikke en konto? Tilmeld

  • Login or register to search.
Powered by NodeBB Contributors
Graciously hosted by data.coop
  • First post
    Last post
0
  • Hjem
  • Seneste
  • Etiketter
  • Populære
  • Verden
  • Bruger
  • Grupper