How can I "puny" encode emoji?
<p>Emojis have <a href="https://stackoverflow.com/questions/19304535/nsstring-with-emoticons-emojis-url-encode">percent encoded representations</a>, but they also have <a href="https://www.punycoder.com/" rel="nofollow noreferrer">"puny" representations</a>. How does this work? Is there an easy way to convert emojis to punty codes?</p>

<p>For example, the key emoji () can be represented by the percent encoding <code>%f0%9f%94%91</code> and  the puny code <code>xn--kv8h</code>.</p>