ASCII transliterations of Unicode text for Java
Java
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src fix #9 add charsetName Jul 14, 2014
.gitignore update git ignore file Jan 13, 2014
.travis.yml jdk 1.6 May 24, 2013
LICENSE add MIT LICENSE Jul 9, 2015
README.md thanks May 28, 2014
pom.xml [maven-release-plugin] prepare for next development iteration May 26, 2014

README.md

Unidecode

Build Status Maven Central

ASCII transliterations of Unicode string for Java.

How to Use

Edit pom.xml.

<dependency>
	<groupId>me.xuender</groupId>
	<artifactId>unidecode</artifactId>
	<version>0.0.7</version>
</dependency>

decode

System.out.print(Unidecode.decode("南无阿弥陀佛"));
Nan Wu A Mi Tuo Fo

System.out.print(Unidecode.decode("一条会走路的鱼"));
Yi Tiao Hui Zou Lu De Yu

System.out.print(Unidecode.decode("あみだにょらい"));
amidaniyorai

initials

System.out.print(Unidecode.initials("南无阿弥陀佛"));
NWAMTF

System.out.println(Unidecode.initials("不怨人就是成佛的大道根"));
BYRJSCFDDDG

System.out.print(Unidecode.initials("Κνωσός"));
K

Reference

Unidecode for Python

Thanks