<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Idn on Miek Gieben</title>
    <link>https://miek.nl/tags/idn/</link>
    <description>Recent content in Idn on Miek Gieben</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <copyright>© Copyright 2007-2024 Miek Gieben</copyright>
    <lastBuildDate>Sun, 21 Sep 2014 19:45:00 +0000</lastBuildDate>
    <atom:link href="https://miek.nl/tags/idn/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>IDN and Private RR in Go DNS</title>
      <link>https://miek.nl/2014/september/21/idn-and-private-rr-in-go-dns/</link>
      <pubDate>Sun, 21 Sep 2014 19:45:00 +0000</pubDate>
      <guid>https://miek.nl/2014/september/21/idn-and-private-rr-in-go-dns/</guid>
      <description>&lt;p&gt;Thanks to the excellent work from Alex Sergeyev, &lt;a href=&#34;http://github.com/miekg/dns&#34;&gt;Go DNS&lt;/a&gt;&#xA;has gotten some new features. I want to highlight two: IDN (&lt;a href=&#34;https://www.ietf.org/rfc/rfc3492.txt&#34;&gt;https://www.ietf.org/rfc/rfc3492.txt&lt;/a&gt;) and Private&#xA;RR support (&lt;a href=&#34;http://tools.ietf.org/html/rfc6895&#34;&gt;http://tools.ietf.org/html/rfc6895&lt;/a&gt;).&lt;/p&gt;&#xA;&lt;h2 id=&#34;idn&#34;&gt;IDN&lt;/h2&gt;&#xA;&lt;p&gt;This adds support for converting from and to Punycode. There is &lt;em&gt;no&lt;/em&gt; explicit support, you will&#xA;need to call &lt;code&gt;idn.ToPunycode&lt;/code&gt; and &lt;code&gt;idn.FromPunyCode&lt;/code&gt; yourself if you are dealing with IDNs.&lt;/p&gt;&#xA;&lt;p&gt;The examples give in the code:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;name := &amp;quot;インターネット.テスト&amp;quot;&#xA;fmt.Printf(&amp;quot;%s -&amp;gt; %s&amp;quot;, name, idn.ToPunycode(name))&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Which outputs:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
