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
1 answer

Nodejs Detect punycode IDN language

I know there are libraries like bestiejs/punycode.js or NodeJS PunnyCode to convert punycode, but I can't find any library that detect punycode languages(Geek, Chinese, etc). Is that possible to detect punycode language natively or it has to use…
Jerry
  • 1,455
  • 1
  • 18
  • 39
0
votes
0 answers

Punycode is showing instead of Unicode in URL

The domain in question is amammerɛ.net. Punycode: xn--amammer-1dd.net. But when I load the site xn--amammer-1dd.net is showing instead of amammerɛ.net? Why is this please? I'm new when it comes to IDN's but I would like to have special characters in…
Zindzi
  • 41
  • 1
  • 6
0
votes
1 answer

Decoding HTTP headers with Unicode characters in Node.js

I've got an Express server running with the following cors middleware config: app.use( cors({ origin: [ /^http:\/\/localhost:\d+/, /^https:\/\/щоденниквражень\.укр/, /^https:\/\/xn--80adfecflqzagb7a3ioc\.xn--j1amh/, ], …
Anton
  • 440
  • 3
  • 10
0
votes
1 answer

Does a Punycode domain name (UName) store the IDN table used?

I've created a domain name such as: même.vip I can see in the database, that the domain name has been registered with IDN table: "fr". However, 'ê' can be Portuguese, Norwegian, etc... I am trying to understand who is assuming the IDN table…
DraxDomax
  • 1,008
  • 1
  • 9
  • 28
0
votes
0 answers

Where did this punycode include come from?

Yesterday I was debugging a standard .Net MVC web application using Visual Studio 2019. I have some javascript behind the view to asynchronously load some dropdown menus using jquery. The view was basically complete and working but needed a small…
Aimed
  • 1
  • 1
0
votes
1 answer

Special characters in QUrl will be transformed to punycode

I'm having a textfield where the user can add an URL with I'm having a textfield where the user can add an URL with QUrl::fromUserInput() and it then will be put into a list. If I use special characters in the URL like "http://blöd.de/" it will be…
Vanessa
  • 49
  • 8
0
votes
2 answers

Regex failing to match the punycode url

I was having the url which on converting to punycode has suffix as xn---- which all the regex present in ruby libraries fails to match. Currently I am using validates_url_format_of ruby library. Example Url:…
Sumit Sharma
  • 83
  • 2
  • 11
0
votes
0 answers

Javascript - Problems while converting of secondary set of emojis (UCS2) with punycode.js

When i run the punycode.ucs2.decode ("This is a message with emoji ⚽ ⛄ ) ") I'm obtaining numbers greater than 0xFFFF (65536) in codes. That causes me a problem because i need to convert this into a paddedHexString. So i have to pad the…
Omar Alvarado
  • 1,304
  • 2
  • 12
  • 16
0
votes
1 answer

PHP idn_to_ascii / VB.net idn.GetAscii() does not result in correct PUNY CODE / IDN Domain

I tried to conver the domain: http://pfeffermühle.com to a correct IDN Domain in Punycode form. I used vb.net and php, but both results are not correct. VB.net: Dim idn As New System.Globalization.IdnMapping() Dim punyCode As String =…
memme
  • 112
  • 1
  • 10
0
votes
1 answer

java - IDN.toASCII must protocol be removed before?

I created an URL validator for my JSF webpage and now stumbled across a problem with domains where the first word (separated by dot) contains a non ASCII character. I have following valid website url http://testä.com. Converting it to puny code…
djmj
  • 5,579
  • 5
  • 54
  • 92
0
votes
1 answer

Can I treat all domain names as being IDNs without any ill effects?

From testing, it seems like trying to convert both IDNs and regular domain names 'just works' - eg, if the input doesn't need to be changed punycode will just return the…
mikemaccana
  • 110,530
  • 99
  • 389
  • 494
0
votes
1 answer

Searching in punycode

I have some punycodes in mongoDB. I need to search them on user requests by their native languages. I can find it if user has entered a complete address, but if he has entered part of the address, then I can not find them. It is not a real code, but…
outdead
  • 448
  • 6
  • 15
0
votes
1 answer

How can I make my domain name display correctly in peoples web browsers?

I bought http://jørgensens.com but when I visit it in a browser it changes the name to http://xn--jrgensens-l8a.com/. How can I fix this so that it displays to everyone the name I wanted?
Faugaun
  • 33
  • 7
0
votes
4 answers

Problem in converting string to puny code (in PHP, using phlyLabs's punycode string converter)

i'm using the code from here: http://phlymail.com/en/downloads/idna/download/ and built a function like this (from the example): function convert_to_punycode($inputstring) { $IDN = new idna_convert(); // The input string, if input is not…
Dave
  • 599
  • 4
  • 11
  • 20
0
votes
2 answers

How to form URI to access network machine with hostname containing extended characters

I have some Windows 7 machines on a local network, each with a hostname. One of them is running a Java 8 application that must access another machine via HTTP, so it needs to form a URI containing the server machine's hostname. The machine running…
Garret Wilson
  • 18,219
  • 30
  • 144
  • 272