Questions tagged [idn]

Internationalized domain name, an Internet domain name containing non-ASCII characters.

Internationalized domain names extend the character set for names, allowing to use characters from languages with non-latin alphabets. All IDNs have a ASCII representation for use in applications which do not support IDNs natively.

116 questions
1
vote
1 answer

count length of international domain name throw SQL (PostgreSQL)

I have several domain names saved in database in idn format ("xn--"). I want to run some statistics queries, but have problem to count characters on these domain names SELECT dom_name, char_length(dom_name) as raw_length, -- counted with…
briiC
  • 2,134
  • 17
  • 28
1
vote
3 answers

Is this format: "U+043E;U+006F,U+004D" some sort of encoding standard and does java offer a standard library method to convert it to char?

I am investigating some mess that has been done to our languages-support (it is used in our IDN functionality, if that rings a bell)... I used an SQL GUI client to quickly see the structure of our language definitions. So, when I do select charcodes…
DraxDomax
  • 1,008
  • 1
  • 9
  • 28
1
vote
0 answers

How to use IDN domain with swedish åäö when sharing on Facebook?

I have a IDN domain "återvinnmera.se" and when I try to share the link i a post on Facebook, it fetches the image, title, description etc as it should, but the address that is shown is "xn--tervinnmera-w8a.se". So my question is if there is anything…
Claes Gustavsson
  • 5,509
  • 11
  • 50
  • 86
1
vote
0 answers

Wikimedia show page not found after set short url

i want to remove index.php from mediawiki url. After that i can't access to main page. What i did: Add to LocalSettings.php following lines: $wgScriptPath = "/mediawiki"; $wgArticlePath = "/wiki/$1"; $wgUsePathInfo = true; Created .htaccess: Enable…
NorrPL
  • 89
  • 1
  • 1
  • 7
1
vote
1 answer

Handling special characters in domain names (without IDN)?

I am using the URI class to break apart a string url. The getHost() method returns null when there are special characters in it. Such as: http://✪df.ws/g44 It was suggested to use the IDN class to work around this. However, that class is only…
cottonBallPaws
  • 21,220
  • 37
  • 123
  • 171
1
vote
3 answers

Domain Name Regex Including IDN Characters c#

I want my domain name to not contain more than one consecutive (.), '/' or any other special characters. But it can contain IDN Characters such as Á, ś, etc... I can achieve all requirements (except IDN) by using this…
A.Ghaffar
  • 83
  • 2
  • 13
1
vote
0 answers

How to make Nginx rewrite internationalized domains in Unicode instead of ASCII?

I am using a rewrite rule that includes the domain name in the path: rewrite ^/?$ http://example.com/landingpage/$http_host break; This works fine, except for Internationalized domain names in Unicode, because nginx includes $http_host as ASCII…
user7942
  • 113
  • 1
  • 4
1
vote
1 answer

the ruby idna.toUnicode fun, is not converting the punycode in the tld part

i use the Idna.toAscii fun to convert a site name www.中国.中国(the tld is also has unicode chars). the result was www.xn--fiqs8s.xn--fiqs8s I used the Idna.toUnicode fun to convert the above punycode back to the unicode characters. but i got only…
anusuya
  • 653
  • 1
  • 9
  • 24
1
vote
1 answer

Is there a list of Unicode character categories included/excluded in IDNs?

I want to make a regex that would match an IDN using Unicode categories (.NET engine). The spoofing prevention is not essential for my goals, so confusing characters don't have to be excluded. I found some lists of individual characters (e.g.…
Andrey Shchekin
  • 21,101
  • 19
  • 94
  • 162
1
vote
0 answers

Excel VBA Punycode Support for International Domain Names (IDNA2003, IDNA2008, and UTS46)

Does Excel VBA provide any sort of method, function, or API for Punycode or converting to and from Unicode/Ascii for Internationalized Domain Names? I was able to find a JavaScript version (below) which seems to work for IDNA2008 Standards. I am…
B Hart
  • 1,108
  • 11
  • 20
1
vote
1 answer

Replace hostname in Node.js + Express.js to decode punycode domain

I'm developing a web-app on a cyrillic domain. Currently, this domain hosts a "parked page", saying the site is under construction. If I access it in Chrome, I see punycode in the address bar. Safari decodes it, though. For the development purposes,…
Anton Egorov
  • 1,328
  • 1
  • 16
  • 33
1
vote
1 answer

URL elongator using libcurl : IRI/IDN and fragments issues

I'm trying to code an URL elongator using libcurl through pycURL (if you don't know pycURL don't go away, it's a libcurl issue). An URL elongator is the reverse of an URL shortener : the aim is to get the final URL without any redirection left, so…
1
vote
1 answer

punycode and .рф cyrillic domain redirect

I have a website with cyrillic domain name. There is an authorization lib which redirects the user to login page, but the url is somehow missformed. The website is on CodeIgniter and the redirect function used is the standard redirect function of…
MR.GEWA
  • 833
  • 1
  • 15
  • 37
1
vote
1 answer

Is an IDN valid in a src attribute or does it have to be Punycode-encoded?

In an UTF-8 encoded HTML document, is it valid to use an IDN as a value for src and href attributes? ICT Are there any objections that enforce the use of the Punycode-encoded version?
dakab
  • 5,379
  • 9
  • 43
  • 67
1
vote
0 answers

IDN (Domain) validation with regular expression

I want to check some domains with regular expression (regex). My old code was: /^([a-z0-9]+([-a-z0-9]*[a-z0-9]+)?.){0,}([a-z0-9]+([-a-z0-9]*[a-z0-9]+)?){1,63}(.[a-z0-9]{2,7})+$/i It works but this code doesn't validate IDNs (internationalized…
user3620931
  • 131
  • 9