Questions tagged [punycode]

Punycode is a encoding syntax by which a Unicode (UTF-8) string of characters can be translated into the basic ASCII-characters permitted in network host names. Examples: mañana.com, bücher.com and café.com.

Punycode is a encoding syntax by which a Unicode (UTF-8) string of characters can be translated into the basic ASCII-characters permitted in network host names. Punycode is used for internationalized domain names, in short IDN or IDNA (Internationalizing Domain Names in Applications).

For example, when you would type café.com in your browser, your browser (which is the IDNA-enabled application) first converts the string to punycode "xn--caf-dma.com", because the character 'é' is not allowed in regular domain names. Punycode domains won't work in older browsers.

Examples:

  • mañana.com
  • bücher.com
  • café.com.
80 questions
0
votes
0 answers

Facebook OpenGraph metadata - Punycoded domains (with scandic / special characters) not decoded

Facebook doesn't seem to understand to decode punycoded domains with OpenGraph og:url metatag Take a look into this example - type "kämp pikset .fi" (please remove the spaces, I don't want this question to get indexed for that…
ux.engineer
  • 10,082
  • 13
  • 67
  • 112
0
votes
0 answers

Convert from and to puny code to unicode using c#?

Possible Duplicate: Punycode converter at C# I am looking to convert a puny code to unicode using C#. I did come across few js including this one called "punycode.js" and also this question on SO. But my requirement is to do the same using C#,…
Yasser Shaikh
  • 46,934
  • 46
  • 204
  • 281
0
votes
0 answers

Improving regex pattern to also validate ipv6 / punycode / foreign domain names

Possible Duplicate: PHP validation/regex for URL How to validate a domain name using Regex & Php? I currently use this regex pattern to validate domain names before they are added to my database: $pattern =…
Marcus Weller
  • 361
  • 1
  • 3
  • 11
-1
votes
1 answer

Converting-punycode-with-dash-character-to-unicode

This is in reference to this topic on the page here: Converting punycode with dash character to Unicode //Javascript Punycode converter derived from example in RFC3492. I don't know where to place the input 清华大学.cn domain to get the Javascript to…
-2
votes
1 answer

How check punycode url?

How i can check in php, in what format displayed url xn--d1acufc5f.xn--p1ai or домены.рф I try use $_SERVER['HTTP_HOST'] but browsers where supporting punycode, http_host return no encoding version
1 2 3 4 5
6