Unable to Purchase Chinese Domain Names

๐ Platform: https://www.didnames.io/app/?domain โ๏ธ Severity: High ๐ก Category: Domain Registration / Internationalization (i18n) / Input Handling
๐งฉ Description:
When attempting to purchase a Chinese domain name (e.g., ็ฝไบบๅฅณๅฃซ), the system fails to proceed with the purchase and displays an error message:
โ๏ธ**โPlease enter a valid domain nameโ**
The site prevents users from continuing to checkout, making it impossible to register non-Latin character (Unicode) domains.
๐ช Steps to Reproduce:
- Go to https://www.didnames.io/app/?domain
- In the search bar, type a Chinese domain name, e.g. ็ฝไบบๅฅณๅฃซ
- Click Search
- Observe that the system displays: > โ๏ธ**โPlease enter a valid domain nameโ** >
- User cannot continue to the Buy or Register process.
โ Expected Result:
- The platform should allow Chinese character domain names and proceed to the registration or purchase flow.
- It should convert or encode non-ASCII text using Punycode (IDN support) instead of blocking input.
โ Actual Result:
- The search/purchase field rejects Chinese domain inputs.
- Displays the error: > โ๏ธ**โPlease enter a valid domain nameโ** >
- No way to buy or register domains in non-English scripts.
โ ๏ธ Impact:
- Prevents registration of internationalized (IDN) domains.
- Excludes Chinese-speaking and other non-English users from using DIDNames.
- Reduces platform inclusivity and potential global user adoption.
๐ Possible Cause (Hypothesis):
- Input validation only allows AโZ, 0โ9, and hyphen (-) characters.
- Lack of Unicode / Punycode handling in frontend validation or backend domain parsing.
- Missing i18n support in domain validation logic.
๐งฐ Suggested Fix:
- Enable Internationalized Domain Name (IDN) support using Punycode encoding.
- Update input validation regex to accept Unicode characters.
- Allow frontend to convert Unicode domains to Punycode before API submission.
- Display user-friendly feedback for unsupported scripts.