Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

pwall567/punycode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

punycode

Build Status License: MIT Maven Central

Punycode encoder / decoder.

The functions are simple transcriptions into Java of the algorithms in the Punycode specification.

Usage

To convert a string (e.g. an international domain name) into Punycode:

    String encoded = Punycode.encode(domainName);

And to decode a Punycode string into Unicode:

    String decoded = Punycode.decode(encodedName);

Unicode surrogate sequences will be accepted in the input string for encoding, and will be produced if required when decoding.

Dependency Specification

The latest version of the library is 1.0, and it may be obtained from the Maven Central repository.

Maven

    <dependency>
      <groupId>io.jstuff</groupId>
      <artifactId>punycode</artifactId>
      <version>1.0</version>
    </dependency>

Gradle

    implementation 'io.jstuff:punycode:1.0'

Gradle (kts)

    implementation("io.jstuff:punycode:1.0")

Peter Wall

2025-11-13

About

Punycode encoder / decoder

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages