<oembed><type>rich</type><version>1.0</version><author_name>npub18gjvug29c4yg46lmplq38e75gg6wn5mn8taytckcsr4jt8p74h3s5knkzl</author_name><author_url>https://nostr.ae/npub18gjvug29c4yg46lmplq38e75gg6wn5mn8taytckcsr4jt8p74h3s5knkzl</author_url><provider_name>njump</provider_name><provider_url>https://nostr.ae</provider_url><html>📅 Original date posted:2014-07-15&#xA;📝 Original message:If the user creates a password on an iOS device with an astral&#xA;character and then can&#39;t enter that password on a JVM wallet, that&#xA;sucks. If JVMs really can&#39;t support unicode NFC then that&#39;s a strong&#xA;case to limit the spec to the subset of unicode that all popular&#xA;platforms can support, but it sounds like it might just be a JVM&#xA;string library bug that could hopefully be reported and fixed. I get&#xA;the same result as in the test case using apple&#39;s&#xA;CFStringNormalize(passphrase, kCFStringNormalizationFormC);&#xA;&#xA;Aaron Voisine&#xA;breadwallet.com&#xA;&#xA;&#xA;On Tue, Jul 15, 2014 at 11:20 AM, Mike Hearn &lt;mike at plan99.net&gt; wrote:&#xA;&gt; Yes, we know, Andreas&#39; code is indeed doing normalisation.&#xA;&gt;&#xA;&gt; However it appears the output bytes end up being different. What I get back&#xA;&gt; is:&#xA;&gt;&#xA;&gt; cf930001303430300166346139&#xA;&gt;&#xA;&gt; vs&#xA;&gt;&#xA;&gt; cf9300f0909080f09f92a9&#xA;&gt;&#xA;&gt; from the spec.&#xA;&gt;&#xA;&gt; I&#39;m not sure why. It appears this is due to the character from the astral&#xA;&gt; planes. Java is old and uses 16 bit characters internally - it wouldn&#39;t&#xA;&gt; surprise me if there&#39;s some weirdness that means it doesn&#39;t/won&#39;t support&#xA;&gt; this kind of thing.&#xA;&gt;&#xA;&gt; I recommend instead that any implementation that wishes to be compatible&#xA;&gt; with JVM based wallets (I suspect Android is the same) just refuse any&#xA;&gt; passphrase that includes characters outside the BMP. At least unless someone&#xA;&gt; can find a fix. I somehow doubt this will really hurt anyone.&#xA;&gt;&#xA;&gt; ------------------------------------------------------------------------------&#xA;&gt; Want fast and easy access to all the code in your enterprise? Index and&#xA;&gt; search up to 200,000 lines of code with a free copy of Black Duck&#xA;&gt; Code Sight - the same software that powers the world&#39;s largest code&#xA;&gt; search on Ohloh, the Black Duck Open Hub! Try it now.&#xA;&gt; http://p.sf.net/sfu/bds&#xA;&gt; _______________________________________________&#xA;&gt; Bitcoin-development mailing list&#xA;&gt; Bitcoin-development at lists.sourceforge.net&#xA;&gt; https://lists.sourceforge.net/lists/listinfo/bitcoin-development&#xA;&gt;</html></oembed>