This article mainly introduces the function of converting Chinese to pinyin using java, which is very good and has reference value, for more information, please refer to the following days. when I was working on a project, I used pinyin to go to the database table to perform fuzzy query of Chinese Fields. at the beginning, I found a lot of information, fuzzy search can be implemented directly, but it seems complicated. Therefore, a relatively easy solution is to add a new Pinyin field to the database table. This problem is perfectly solved. Although this can be done, so much data is converted to pinyin (one person, one person, one person... this article mainly introduces the function of converting Chinese to pinyin using java, which is very good and has reference value, for more information, please refer to the following days. when I was working on a project, I used pinyin to go to the database table to perform fuzzy query of Chinese Fields. at the beginning, I found a lot of information, fuzzy search can be implemented directly, but it seems complicated. Therefore, a relatively easy solution is to add a new Pinyin field to the database table. This problem is perfectly solved. Although this can be done, so much data is converted to pinyin (it is unrealistic to input data in a single zone ). So I searched for it online and found a piece of code that directly converts Chinese to pinyin. here I will share with you. Required jar: pinyin4j-2.5.0.jarpublic static void main (String [] args) {System. out. println (getPingYin (&
1. java code for converting Chinese and Pinyin
Introduction: This article mainly introduces the function of converting Chinese to pinyin using java, which is very good and has reference value. For more information, see
2. PHP converts Chinese to pinyin (20378 Chinese characters supported)
Brief introduction: PHP converts Chinese to pinyin (20378 Chinese characters supported) PHP converts Chinese to pinyin (20378 Chinese characters supported). in this project, php is used to extract Chinese characters, at that time, the implementation method was implemented using the GB2312 font, but the Chinese characters like "click" found in the project were powerless, and the correct pinyin was not extracted. Version address of the GB2312 class library: http://blog.csdn.net
3. php Chinese pinyin conversion function
Introduction: The php Chinese pinyin conversion function just found a very useful function in the blog garden. you can convert Chinese to pinyin and reprint it.
4. php Chinese pinyin conversion can only be used as the first letter, or utf8, gbk
Brief introduction: php Chinese to pinyin can be converted to only the first letter, or utf8, gbk The above is a detailed description of the course recommendations for converting Chinese to pinyin. For more information, see other related articles in the first PHP community!