Title: ℅ does not encode as a domain name (Python's built-in idna encoding is insufficient) · Issue #19 · python-hyper/hyperlink · GitHub
Open Graph Title: ℅ does not encode as a domain name (Python's built-in idna encoding is insufficient) · Issue #19 · python-hyper/hyperlink
X Title: ℅ does not encode as a domain name (Python's built-in idna encoding is insufficient) · Issue #19 · python-hyper/hyperlink
Description: I'm not entirely sure this is a bug, but it sure seems like one: >>> from hyperlink import URL >>> text = u'http://\u2105' >>> url = URL.fromText(text) >>> url.asIRI() URL.from_text('http://℅') >>> url.asURI() Traceback (most recent call...
Open Graph Description: I'm not entirely sure this is a bug, but it sure seems like one: >>> from hyperlink import URL >>> text = u'http://\u2105' >>> url = URL.fromText(text) >>> url.asIRI() URL.from_text('http://℅') >>>...
X Description: I'm not entirely sure this is a bug, but it sure seems like one: >>> from hyperlink import URL >>> text = u'http://\u2105' >>> url = URL.fromText(text) >&g...
Opengraph URL: https://github.com/python-hyper/hyperlink/issues/19
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"℅ does not encode as a domain name (Python's built-in idna encoding is insufficient)","articleBody":"I'm not entirely sure this is a bug, but it sure seems like one:\r\n\r\n```\r\n>>> from hyperlink import URL\r\n>>> text = u'http://\\u2105'\r\n>>> url = URL.fromText(text)\r\n>>> url.asIRI()\r\nURL.from_text('http://℅')\r\n>>> url.asURI()\r\nTraceback (most recent call last):\r\n File \"\u003cstdin>\", line 1, in \u003cmodule>\r\n File \"/Users/wsanchez/Dropbox/Developer/BurningMan/ranger-ims-server/.tox/coverage-py36/lib/python3.6/site-packages/hyperlink/_url.py\", line 1070, in to_uri\r\n fragment=_encode_fragment_part(self.fragment, maximal=True)\r\n File \"/Users/wsanchez/Dropbox/Developer/BurningMan/ranger-ims-server/.tox/coverage-py36/lib/python3.6/site-packages/hyperlink/_url.py\", line 861, in replace\r\n userinfo=_optional(userinfo, self.userinfo),\r\n File \"/Users/wsanchez/Dropbox/Developer/BurningMan/ranger-ims-server/.tox/coverage-py36/lib/python3.6/site-packages/hyperlink/_url.py\", line 601, in __init__\r\n self._host = _textcheck(\"host\", host, '/?#@')\r\n File \"/Users/wsanchez/Dropbox/Developer/BurningMan/ranger-ims-server/.tox/coverage-py36/lib/python3.6/site-packages/hyperlink/_url.py\", line 410, in _textcheck\r\n % (''.join(delims), name, value))\r\nValueError: one or more reserved delimiters /?#@ present in host: 'c/o'\r\n```\r\n\r\nThe cause is probably in the IDNA encoding:\r\n\r\n```\r\n>>> \"℅\".encode(\"idna\")\r\nb'c/o'\r\n```\r\n\r\nThis surprises me, but I might just be ignorant about how this works…?\r\n","author":{"url":"https://github.com/wsanchez","@type":"Person","name":"wsanchez"},"datePublished":"2017-06-27T20:48:11Z","url":"https://github.com/python-hyper/hyperlink/issues/19"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b8debd77-e2c0-ef5c-a473-3a5975cc7072 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B226:31EED2:57043:771FE:6B06F135 |
| html-safe-nonce | c4d3e834ad4376fd58686da77eb574f0dda3b01051481c45911075cf6fe3dbe3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMjI2OjMxRUVEMjo1NzA0Mzo3NzFGRTo2QjA2RjEzNSIsInZpc2l0b3JfaWQiOiI0MzIzMDM1MzQ3MTYxNjQxMjY5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b834054fccbc2ae25da0cd745bb9e9521930aa31078affe51302388332d47279 |
| hovercard-subject-tag | issue:238977680 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-hyper/hyperlink/19/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cab46b93373cfe22c1d0d04b9c1f8fbada171a8248667d48e02ad6d7d34597d0/python-hyper/hyperlink/issues/19 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cab46b93373cfe22c1d0d04b9c1f8fbada171a8248667d48e02ad6d7d34597d0/python-hyper/hyperlink/issues/19 |
| og:image:alt | I'm not entirely sure this is a bug, but it sure seems like one: >>> from hyperlink import URL >>> text = u'http://\u2105' >>> url = URL.fromText(text) >>> url.asIRI() URL.from_text('http://℅') >>>... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | wsanchez |
| hostname | github.com |
| expected-hostname | github.com |
| None | 351ea5ca38a5758919d44ee52c70fe9003c0c2dfa20f04effd7fac0c5330c16b |
| turbo-cache-control | no-preview |
| go-import | github.com/python-hyper/hyperlink git https://github.com/python-hyper/hyperlink.git |
| octolytics-dimension-user_id | 13035907 |
| octolytics-dimension-user_login | python-hyper |
| octolytics-dimension-repository_id | 82321340 |
| octolytics-dimension-repository_nwo | python-hyper/hyperlink |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 82321340 |
| octolytics-dimension-repository_network_root_nwo | python-hyper/hyperlink |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 891bde3f438884e9c6c7ccd826f33805910a978b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width