IDN Forums - Internationalized Domain Names  
Home | Advertise on idnforums | Premium Membership

Go Back   IDN Forums - Internationalized Domain Names > IDN Discussions > General Discussion

General Discussion Feel free to talk about anything and everything in this board.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 26th February 2011, 11:07 PM
555 555 is offline
ком.ком コム.コム
 
Join Date: Jan 2006
Posts: 4,141
iTrader: (33)
Rep Power: 1682
555 has disabled reputation
There's no "I" in IDN, part 1: If you're not Unicode, you're just wrong!

International domain names -- one of those times that we really are all in this together, a time that "I don't have time to fix this" really isn't a good answer.
I figured I should talk about that for a bit....
So anyway, the question I got from a rather anxious developer via email the other day was:
I have a lot of code that depends on functions like getaddrinfo, getnameinfo, gethostbyname, and gethostbyaddr. How do I get them to support internationalized domain names?
The answer is both simple and complicated.
Complicated because the answer could (in theory) very different depending on whether the server is on the intranet (where one would use UTF-8) or the Internet (where one would use Punycode).
And complicated because there isn't a whole lot of infrastructure to have the system figure out which is which and which to use in native code (the managed story is a little better here but it has its own pitfalls; I will cover those another day).
For now I'll just talk about the intranet story (the Internet story will be for another another day).
The most important step, one that is pretty much universally a good design practice for many reasons but especially here is to move off the non-Unicode functions like the ones our anxious developer named. If one has anything outside of ANSI (or even ASCII in some cases), the Unicode (or UTF-8) version are required here, as the following table points out:

http://blogs.msdn.com/b/michkap/arch.../10128621.aspx

Last edited by 555; 29th May 2011 at 12:35 AM..
Reply With Quote
  #2 (permalink)  
Old 27th February 2011, 09:25 AM
domainguru's Avatar
Senior Member
 
Join Date: Mar 2006
Posts: 3,835
iTrader: (14)
Rep Power: 2518
domainguru has a spectacular aura aboutdomainguru has a spectacular aura aboutdomainguru has a spectacular aura aboutdomainguru has a spectacular aura aboutdomainguru has a spectacular aura aboutdomainguru has a spectacular aura aboutdomainguru has a spectacular aura aboutdomainguru has a spectacular aura aboutdomainguru has a spectacular aura about
Re: There's no "I" in IDN, part 1: If you're not Unicode, you're just wrong!

Quote:
Originally Posted by 555 View Post
International domain names -- one of those times that we really are all in this together, a time that "I don't have time to fix this" really isn't a good answer.
I figured I should talk about that for a bit....
So anyway, the question I got from a rather anxious developer via email the other day was:
I have a lot of code that depends on functions like getaddrinfo, getnameinfo, gethostbyname, and gethostbyaddr. How do I get them to support internationalized domain names?
The answer is both simple and complicated.
Complicated because the answer could (in theory) very different depending on whether the server is on the intranet (where one would use UTF-8) or the Internet (where one would use Punycode).
And complicated because there isn't a whole lot of infrastructure to have the system figure out which is which and which to use in native code (the managed story is a little better here but it has its own pitfalls; I will cover those another day).
For now I'll just talk about the intranet story (the Internet story will be for another another day).
The most important step, one that is pretty much universally a good design practice for many reasons but especially here is to move off the non-Unicode functions like the ones our anxious developer named. If one has anything outside of ANSI (or even ASCII in some cases), the Unicode (or UTF-8) version are required here, as the following table points out:

http://blogs.msdn.com/b/michkap/arch.../10128621.aspx
You use the punycode everywhere in your code unless the function specifically supports UTF-8 input. You don't write one set of code for Intranet vs Internet. How do you know where your code will end up running? Idiot.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 06:27 PM.

Site Sponsors
Your ad here
buy t-shirt
מחיר הזהב

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Copyright idnforums.com 2005

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54