Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Punycode
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Examples == The following table shows examples of Punycode encodings for different types of input.<ref>The Punycode in this table was created using the builtin codec "punycode" of the [[Python (programming language)|Python programming language]] version 3.8 (<code>s.encode("punycode")</code>). See [[Talk:Punycode#More examples are needed, especially pure ASCII examples and corner cases|talk page]].</ref> {| class="wikitable" ! Input !! Punycode !! Description |- | {{tt|}} || {{tt|}} || The empty string. |- | {{tt|a}} || {{tt|a-}} || Only [[ASCII]] characters, one, lowercase. |- | {{tt|A}} || {{tt|A-}} || Only ASCII characters, one, uppercase. |- | {{tt|3}} || {{tt|3-}} || Only ASCII characters, one, a digit. |- | {{tt|-}} || {{tt|--}} || Only ASCII characters, one, a hyphen. |- | {{tt|--}} || {{tt|---}} || Only ASCII characters, two hyphens. |- | {{tt|London}} || {{tt|London-}} || Only ASCII characters, more than one, no hyphens. |- | {{tt|Lloyd-Atkinson}} || {{tt|Lloyd-Atkinson-}} || Only ASCII characters, one hyphen. |- | {{tt|This has spaces}} || {{tt|This has spaces-}} || Only ASCII characters, with spaces. |- | {{tt|-> $1.00 <-}} || {{tt|-> $1.00 <--}} || Only ASCII characters, mixed symbols. |- | {{tt|Б}} || {{tt|d0a}} || No ASCII characters, one [[Ƃ|Cyrillic character]]. |- | {{tt|ü}} || {{tt|tda}} || No ASCII characters, one [[Latin-1 Supplement]] [[Ü|character]]. |- | {{tt|α}} || {{tt|mxa}} || No ASCII characters, one [[Alpha|Greek character]]. |- | {{tt|例}} || {{tt|fsq}} || No ASCII characters, one [[CJK characters|CJK]] character. |- | {{tt|😉}} || {{tt|n28h}} || No ASCII characters, one [[emoji]] character. |- | {{tt|αβγ}} || {{tt|mxacd}} || No ASCII characters, more than one character. |- | {{tt|München}} || {{tt|Mnchen-3ya}} || Mixed string, with one character that is not an ASCII character. |- | {{tt|Mnchen-3ya}} || {{tt|Mnchen-3ya-}} || Double-encoded Punycode of "München". |- | {{tt|München-Ost}} || {{tt|Mnchen-Ost-9db}} || Mixed string, with one character that is not ASCII, and a hyphen. |- | {{tt|{{nowrap|Bahnhof München-Ost}}}} || {{tt|Bahnhof Mnchen-Ost-u6b}} || Mixed string, with one space, one hyphen, and one character that is not ASCII. |- | {{tt|abæcdöef}} || {{tt|abcdef-qua4k}} || Mixed string, two non-ASCII characters. |- | {{tt|правда}} || {{tt|80aafi6cg}} || [[Russian language|Russian]], without ASCII. |- | {{tt|ยจฆฟคฏข}} || {{tt|22cdfh1b8fsa}} || [[Thai language|Thai]], without ASCII. |- | {{tt|도메인}} || {{tt|hq1bm8jm9l}} || [[Korean language|Korean]], without ASCII. |- | {{tt|ドメイン名例}} || {{tt|eckwd4c7cu47r2wf}} || [[Japanese language|Japanese]], without ASCII. |- | {{tt|MajiでKoiする5秒前}} || {{tt|{{nowrap|MajiKoi5-783gue6qz075azm5e}}}} || Japanese with ASCII. |- | {{tt|「bücher」}} || {{tt|bcher-kva8445foa}} || Mixed non-ASCII scripts (Latin-1 Supplement and CJK). |- |}
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)