网上找了很多,终于找到一个比较靠谱的,代码在附件中,测试如下:
返回:ZHANGSAN
来源:[url]http://www.oschina.net/code/snippet_203297_7751[/url]
public static void main(String[] args) {
ChiToLetter chi = new ChiToLetter();
System.out.println(chi.GetLetterString("张三").toString());
}
返回:ZHANGSAN
来源:[url]http://www.oschina.net/code/snippet_203297_7751[/url]