Wish Punycode Library

trepdas

Active Member
Licensed User
Longtime User
for my next project, I need a punycode to idn library.

converting non alphanumeric characters (characters of all foreign languages) into idn.
for example
the word :
שלום
will be converted to : xn--9dbne9b

I have deep in archive a working php code that does that, I will be happy to send it to any developer.
It will be great if someone can make this feature into a b4x lib.

converter example (online) can be found here
https://www.punycoder.com/

and I also found an open source in java here :
https://cdnjs.com/libraries/punycode

???

Here is the php code I have , it will be great if someone can help and make this happen.....
 

Attachments

  • idn.zip
    19 KB · Views: 210
Last edited:

Erel

B4X founder
Staff member
Licensed User
Longtime User
 

trepdas

Active Member
Licensed User
Longtime User
Thank you
as I understood (maybe didn't) , the example function convert idn to ascii .
How would I convert it back ? (ASCII to idn)
 
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…