[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [idn] Newbie's questions implementing the [IDNA]
Dear Adam,
On 02:11 11/12/02, Adam M. Costello said:
"JFC (Jefsey) Morfin" <jefsey@jefsey.com> wrote:
> if (ToASCII(nameprep(ToUnicode(ascii_text))) == ascii_text) babelname=true;
> if (babelname) "iesg--ascii_text" will display in ASCII mode on most
> of the systems while having been registered, and possibly TMed, as
> ToUnicode(ascii_text).
Your reference to "iesg--ascii_text" suggests that you expect ascii_text
not to include the ACE prefix. But in that case, ToUnicode(ascii_text)
is simply ascii_text itself, because ToUnicode won't alter a string that
doesn't begin with the ACE prefix.
True. I was interested in the general idea.
which is roughly approximated by this test:
Punyencode(Nameprep(Punydecode(ascii_text))) == ascii_text
actually it is:
- punycode_encode () and punnycode_decode.()
- and I am not interested in nameprep but just in making
sure the Unicode stay invarient as per Paull Hoffman's draft.
so it would be Paul_Hoffman_invarient() if I am correct.
which is similar in form to the test you proposed, but ToASCII is
very different from Punyencode, and ToUnicode is very different from
Punydecode.
I am only interested to knowi if such a program permits me to
correctly determine Unicode IDNs of which the
IESG--ascii_text will be displayed in non-ASCII form by IDN-aware
applications capable of displaying the characters, and will be displayed
in ASCII form otherwise.
as "iesg--coca-cola.com" or "iesg--jonathan-cohen.net" or
"iesg--vint-cerf.org".
Thank you.
jfc