Comments (4)
@ZhaoQi99 FYI: this has been reported (and closed) three times already. It struck to me, too, today, which is why I am even here ;) There is a work around available in #50 (comment).
from idna.
That's how it's supposed to work. IDNA2008 specifically lists the characters allowed in hostnames, and _ is not one of them.
It would be a good idea to have some options to deal with domain names that are not hostnames. In your case an option to allow ASCII names with non-hostname characters. Another options could do NFC or UTS46 preprocessing.
FYI, although it is valid to have an underscore in a domain name, it's not valid in a hostname that names a computer such as a web server.
from idna.
Thanks,I think is really a good idea to add an option to solve this problem.
FYI, it could add an option such as errors="weak"
which can deal with domain names that are not hostnames.
from idna.
@ZhaoQi99 FYI: this has been reported (and closed) three times already. It struck to me, too, today, which is why I am even here ;) There is a work around available in #50 (comment).
Thanks!
from idna.
Related Issues (20)
- CI: Set minimum permissions on GitHub Workflow HOT 2
- Create a Security Policy
- Exception when decoding U+20AC Euro Sign HOT 1
- Function to check if a string is an idna domain HOT 3
- Suggest adoption of Scorecard GitHub Action HOT 1
- IDNA package source installation is broken in Poetry - Adhere to PEP-721 HOT 2
- Deprecate `setup.cfg` HOT 1
- Set a new minimum Python version HOT 2
- Use code formatter on source HOT 4
- PyPI Publish GitHub Action failing HOT 1
- `HISTORY.rst` no longer included in source distribution HOT 1
- RFE: is it possible to start making github releases?🤔 HOT 6
- License identifier is incorrect on released packages HOT 5
- Document exceptions HOT 2
- Exception ValueError: no such name
- Reproducer for CVE-2024-3651 HOT 7
- Patch for CVE-2024-3651, for v3.3 HOT 3
- Clarify that uts46=True is preprocessing only (and still enforces IDNA-2008 restrictions)
- Unable to pre-flight packages to TestPyPI
- Regression in import time HOT 2
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 idna.