When you input Chinese characters in php, you need to automatically extract Chinese characters and English letters to facilitate data indexing.
Only the code is pasted here. the online api is used in English and the class library is used in Chinese. I think this pinyin class library is better and won't cause problems
Install Google Pinyin input method in Ubuntu and solve the problem that the input method cannot print Chinese characters. install Google Pinyin input method in Ubuntu (which is actually an extension of scim) as follows: www.2cto. comA. get the code: (install git first without git: sudoapt-getinstall... install Google Pinyin
For the first to get the string character full pinyin function, we should have an understanding. Now I also integrated the vast number of netizens circulated to get the string of Chinese pinyin first letter function was organized. Described belowThis feature is slightly more complex to write using 3 functions to solve the problem of getting the string of
PHP converts Chinese characters to Pinyin is one of the tasks that programmers often need to operate, although this small function can play a great role, the following is the correct pinyin method of Chinese characters, we can learn from.
network similar code mostly can only be used under the GB2312 code, the followi
Php is used to obtain the first letter of Chinese characters and pinyin. The code for php to copy the first letter of Chinese character Pinyin is as follows :? Phpfunctiongetinitial ($ str) {$ ascord (substr ($ str, 0, 1); if ($ asc160) non-Chinese {if ($ asc48 $ asc57) {ret
The example in this paper describes the python implementation of the Chinese characters into Hanyu Pinyin library. Share to everyone for your reference. The specific analysis is as follows:
The following Python library can easily convert Chinese characters into pinyin, which uses a word.data dictionary, click here to
Just sorted out-functions for converting Chinese characters to PinYin abbreviations (C #)I found it on csdn and did not find a complete conversion function. I have sorted it out on the basis of my predecessors. The following projects may be used. Thanks to bugfree ).
/// /// Abbreviated Chinese character to PinYin// C
The problem of converting Chinese characters to pinyin is found online, but some Chinese characters cannot be converted to pinyin. I wonder if it is related to the input method? For example, Outputs. the output is empty.
= '5. 0 ')? Array_combine ($ _ TDataKey, $ _ TDataValue): _ Array_Combine ($ _ TDataKey, $ _
The following two solutions are available: 1. extract the first letter of the Chinese alphabet into the database. there are two problems with extracting and classifying the first letter before the front-end display: 1. which of the above two solutions is better? Or is there any other solution? 2. What is a good solution for extracting the first letter? (The following two solutions are available:
1. Extract the first letter of the
In a project, you need to make queries based on the first letter of certain query conditions (such as name). For example, if you want to query a person named "James", you can enter 'zs '. A tool class is written as follows:
/** GB 2312-80 divides the recorded Chinese characters into two levels. The first level of Chinese characters is commonly used, with 3755 Chinese
1 /// Bytes /// Pinyin search /// Bytes /// Bytes /// Bytes Private String Getchinesespell ( String Strtext) plaintext {plaintext ){ Int Len = strtext. length; Comment comment; String Mystr = "" ; Commandid; For ( Int I = 0 ; I 1 ); Too many} too many ));} Return Mystr; commandid} commandid ;} /// Bytes/// Get the first letter of the Chinese Character /// Bytes /// Bytes ///
Oracle:New in oracle9i, according to pinyin, radicals, stroke sorting function. Setting the Nls_sort valueSchinese_radical_m Sort by radical (first order), stroke (second order)Schinese_stroke_m Sort by stroke (first order), radical (second order)Schinese_pinyin_m by phonetic sorting, the default sorting method for the system is phonetic sortingExamples are as follows:The table name is dept, where the Name field is
A colleague needs to query the database based on Chinese characters abbreviated to PinYin on the webpage a few days ago. Today, I found some pinyin resources from the Internet, and extracted and simplified them into the database. According to this pinyin database, we made a simple webpage. N I haven't written about the
/**//*
Microsoft has just launched
Microsoft Visual Studio International Pack 1.0 Beta1
Supports conversion of Chinese characters and Pinyin strokes
Http://www.microsoft.com/downloads/details.aspx? FamilyID = e432aeaa-7b6f-4b0d-968b-b6aafda05e34 DisplayLang = en
I have extracted dll assembly
ChnCharInfo. dll
ChnCharInfoResource. dll
Download and share
Http://files.cnblogs.com/Microshaoft/vsipk1beta.zip
*/
We know that Silverlight does not support GB2312 encoding. Therefore, Silverlight for Windows Phone naturally does not support GB2312 encoding, and thus cannot use the "C # Chinese character to PinYin" method on the Internet. In fact, we can use a stupid method to put Chinese characters and Pinyin in an array and trave
This article mainly introduces the method of getting the first letter of Chinese pinyin in PHP, the need for friends can refer to the following
In reality, we often see such a description, ranked in no particular order, according to the first letter of the name. This is the sort method that most Chinese use. So how do you do it in a PHP program?
The following is
This article describes how to sort Chinese Characters in mysql by alphabet. If you need it, please refer to it.
This article describes how to sort Chinese Characters in mysql by alphabet. If you need it, please refer to it.
The default results are not sorted by Chinese pinyin. to sort the results by
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.