Support Unicode Domain Input and Display #1097

Closed
opened 2026-04-05 18:17:47 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @Pallavikumarimdb on 8/8/2025

Community Contribution License Agreement

By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.

Description

This PR adds support for Unicode domain names in the frontend interface while maintaining backend compatibility with Punycode.

Changes Made:

  • Accepts Unicode domain names (e.g., café.com, 点看.com) in the domain input field.
  • Automatically converts Unicode domains to Punycode before sending them to the backend using the built-in punycode module.
  • Converts domains fetched from the backend (in Punycode) to Unicode for display in the UI.
  • Improves user experience by allowing users to input and view domain names in their original, recognizable format.

How to test?

  1. Add a new domain with Unicode characters (e.g., café.com, 点看.com, straße.de) via the domain input form.

    • The domain should be accepted without any error.
    • The form should auto-convert the domain to Punycode in the background before submission.
  2. Check the domain listing after adding.

    • The newly added domain should appear in the list in Unicode form (e.g., café.com), even though it’s stored as Punycode.

Fixes: #1162

*Originally created by @Pallavikumarimdb on 8/8/2025* ## Community Contribution License Agreement By creating this pull request, I grant the project maintainers an unlimited, perpetual license to use, modify, and redistribute these contributions under any terms they choose, including both the AGPLv3 and the Fossorial Commercial license terms. I represent that I have the right to grant this license for all contributed content. ## Description This PR adds support for Unicode domain names in the frontend interface while maintaining backend compatibility with Punycode. #### ✅ Changes Made: * Accepts Unicode domain names (e.g., `café.com`, `点看.com`) in the domain input field. * Automatically converts Unicode domains to **Punycode** before sending them to the backend using the built-in `punycode` module. * Converts domains fetched from the backend (in Punycode) to **Unicode** for display in the UI. * Improves user experience by allowing users to input and view domain names in their original, recognizable format. ## How to test? 1. **Add a new domain with Unicode characters** (e.g., `café.com`, `点看.com`, `straße.de`) via the domain input form. * The domain should be accepted without any error. * The form should auto-convert the domain to Punycode in the background before submission. 2. **Check the domain listing after adding.** * The newly added domain should appear in the list **in Unicode form** (e.g., `café.com`), even though it’s stored as Punycode. Fixes: #1162
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/pangolin#1097