Comments (7)
'isprintable' is the hard one ... it will require a backport of py3 unicode to py2. There are a few of them - I used one in about 2015, but I suspect they may not be maintained very well as the usefulness and usage reduced.
from charset_normalizer.
Also seen on https://travis-ci.org/Ousret/charset_normalizer/jobs/577468690
There is a drop-in statistics
backport which can be required only on py2. https://pypi.org/project/statistics
After that, the next py2 problem is ImportError: cannot import name lru_cache
, which also has a backport, but it is in a different namespace so needs a try block https://pypi.org/project/backports.functools_lru_cache/
from charset_normalizer.
And then
AttributeError: 'str' object has no attribute 'isprintable'
and
File "../charset_normalizer/normalizer.py", line 239, in from_bytes
str(sequences, encoding=p)
TypeError: str() takes at most 1 argument (2 given)
And test_should_be_accented failing for some reason.
from charset_normalizer.
https://pypi.org/project/unicodedata2/ is the one I was thinking about ; not sure it has isprintable . maybe need future
for that?
from charset_normalizer.
Hi,
I've tried the same and stopped at isprintable
method support.
I'm looking/considering bulding my own isprintable method and add it to unicode helper class.
from charset_normalizer.
https://github.com/PythonCharmers/python-future/blob/b7fd8a50117a1eb9126ca8840e2b4c4a5c5f70bf/src/future/types/newstr.py#L414 raise NotImplementedError('fixme')
:/
PythonCharmers/python-future#494
from charset_normalizer.
See #5
from charset_normalizer.
Related Issues (20)
- [BUG] Unable to force-reinstall on Windows while in use - >=3.0.0 HOT 2
- IS this code reachable? HOT 1
- [DETECTION] no encoding found. HOT 1
- [DETECTION] EUC-KR files are not detected correctly. HOT 1
- [DETECTION] CP932 containing half-width kana characters cannot be detected correctly. HOT 1
- [BUG] Basic encoding failing and detecting as chinese, croatian and others when it is standard spanish HOT 2
- [DETECTION] Wrong encodings for GBK text HOT 1
- [BUG] Incorrect encoding detected in 3.3.1 HOT 2
- [BUG] Memory usage increase for big files HOT 1
- html file is not reported as UTF8 after conversion HOT 1
- [DETECTION] The results are not stable depending on the package version and do not work correctly HOT 4
- [Proposal] allow to disable language detection HOT 1
- Detection and Tiny sequences HOT 1
- [BUG] encoding is not detected when the input contains multiple encodings HOT 1
- TypeError: __eq__ cannot be invoked on <class 'NoneType'> and <class 'charset_normalizer.models.CharsetMatch'> HOT 1
- [BUG] Windows-1252 encoding is not detected in turkish text HOT 2
- [DETECTION] On the question of speed HOT 2
- [Proposal] Vendoring charset-normalizer in pip HOT 4
- [DETECTION] latin1 text misdetected as mac_latin2 HOT 7
- [DETECTION] fails on short input HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from charset_normalizer.