要求按照姓名的首字母查找教师。同时拼音的首字母是要来自数据库中现已近存在的姓名的姓氏首字母。简单的说就是有这样一些人再数据库中。如有:张三,王五,李四,赵六,李平,刘倩等。 在前端要显示的是 Z , W , L(姓氏的首字母)。同时点击一个首字母的时候要列出所有姓是该首字母的人的姓名。即当点击Z的时候要出来张三,赵六。L时出来李四,李平,刘倩。 这样就用到了要从数据库中提取姓名姓氏首字母的功能。(即中文-->拼音-->首字母)。由于以前没有遇到类似问题,就google。终于找到一个
using System; using System.Collections.Generic; using System.Text; using Microsoft.International.Converters.PinYinConverter; namespace Example_CS { class Program { static void Main(string[] args) { ChineseChar chineseChar = new ChineseChar('微'); Con
Pinyin4j is a popular Java library supporting convertion between Chinese characters and most popular Pinyin systems. The output format of pinyin could be customized. During Mar 22, 2006 - Mar 22, 2009, pinyin4j has 13,542 visits and 10,608 downloads
汉字转拼音java包 I. Main Features 1. Support convertion from Chinese character (both Simplified and Tranditional) to different Chinese Romanization systems 2. Support various target Chinese Romanization systems, including Hanyu Pinyin, Tongyong Pinyin, Wa