I developed a micro SaaS tool. With this tool, people can add things. And it gives titles to the things they add. When you give a title, this title turns into a URL with a permalink.
For example: "You're Welcome" => "your-welcome"
But when Asian languages are involved, the system explodes.
For example: "这是一个例子。" => "这是一个例子。"
The website does not understand this and takes it to the error page. Call it "Zhè shì yīgè lìzi." If I could print it like this maybe it would work, but I searched and couldn't.
I tried with URLEncode/decode, still didn't work.
Maybe you know. If there are Asian entrepreneurs among us or people who have worked in that field, can it help?
Thank you.
Specially to Chinese, you can use some libs to convert the Chinese characters into Pinyin, e.g. 汉字 => han zi . Then you can convert them into han-zi so it can be registered as a new domain. Here's a open source repository you can reference
node-pinyin-stringon GithubIf you are generating URLs for websites, you may need to register domain names in Asian languages. Many domain registrars offer support for internationalized domain names (IDNs), allowing you to register domain names in various scripts, including Asian languages.