Alibabacloud.com offers a wide variety of articles about hanyu pinyin to chinese character, easily find your hanyu pinyin to chinese character information here online.
Php Chinese character to pinyin. Php functions for converting Chinese characters to pinyin (modified by the SpGetPinyin function of dedecms (dedecms1_deincinc_fun_funadmin.php). The Dictionary of dedecms is incomplete ):? Phpfunctionpinyin ($ str, $ is php conversion of
-------------------------------42 countries3 personsMedium*/
Example 2: sort the content of the table NAME column by the last NAME strokes:
Create table # t (id int, name varchar (20 ))
Insert # t select 1, '3'Union all select 2, 'B'Union all select 3, '2'Union all select 4, '1'Union all select 5, '10'Select * from # t order by name collate Chinese_PRC_Stroke_CS_AS_KS_WSDrop table # t/* Result:Id name-------------------------------4yi2 B3 II5th1 3*/
4. Application extension of sorting rules in p
Php Chinese character conversion pinyin implementation program. This article shares an article about the php Chinese character conversion pinyin implementation program. if you need it, refer to. Metahttp-equivContent-Typecontentte
Php Chinese character to pinyin implementation code
/***
* Pinyin. php
* Example: Pinyin ('Zhang Honghua ', 1); // if the second parameter is set as needed, UTF-8 encoding is null. the default value is gb encoding.
* Edit: bbs.
IOS Chinese character to PinYin
Here I reference third-party stuff (email: summer2014mht@sina.com ):
Here I use two methods (method 2 is simple and convenient ):
-(NSString *) pinYin
{
// Method 1
// First convert to PinYin with tones
NSMutableString * str = [self mutableCo
This article provides a detailed analysis of the PHP Chinese character conversion pinyin class. For more information, see the similar code on the Internet, the following class can convert Chinese characters to pinyin in UTF-8 encoding.
The code and usage are as follows:
Th
", "Zang", "Zao", "Ze", "Zei", "Zen", "Zeng", "Zha", "Zhai", "Zhan", "Zhang","Zhao", "Zhe", "Zhen", "Zheng", "Zhi", "Zhong", "Zhou", "Zhu", "Zhua", "Zhuai", "Zhuan", "Zhuang","Zhui", "Zhun", "Zhuo",#endregion
2. Then is the Pinyin processing method
#region Pinyin Processing
Translate a string of Chinese into pinyinIf a given
Php Chinese character to pinyin example. Copy the code as follows :? Bytes
The code is as follows:
Class Helper_Spell {Public $ spellArray = array ();Static public function getArray (){Return unserialize(file_get_contents('pytable_without_tune.txt '));}/*** @ Desc get the first letter of the string* @ Param $ string the string to be converted* @ Param $ wheth
PHP Chinese character to pinyin UTF8 version. The following is a code snippet :? Php (as the mainstream development language) **************************************** * *********************************** Pinyin. php (as the mainstream development
The following is a code snippet:
/*************************
Company needs every year, this year a little special, haha.Suddenly added a demand, said to achieve the Chinese character to pinyin query.In the effort to write out, now share it!!/** * Kanji Pinyin abbreviation * * @param str * character string to convert * @return string p
This article shares an article about the php Chinese character conversion pinyin implementation program. If you need it, refer to.
The Code is as follows:
Copy code
Function Pinyin ($ _ String, $ _ Code = 'utf8') {// the GBK page can be changed to gb2312.$ _ DataKey = "a | ai | an | ang | ao |
Company needs every year, this year a little special, haha.Suddenly added a demand, said to achieve the Chinese character to pinyin query.In the effort to write out, now share it!!!/** * Kanji Pinyin abbreviation * * @param str * character string to convert * @return string
of each Chinese character in a string of Chinese characters.For example, input --> 'responsibility system for operation contracting '--> output --> jycbzrz.Completion Time:By Hao ruijunParameter: @ str --> is the Chinese character you want to get the first letter of the
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 Cha
In GB2312, the received Chinese characters are partitioned. each partition contains 94 Chinese characters/symbols. This representation is also called a location code. In GB 2312, the received Chinese characters are partitioned. each partition contains 94 Chinese characters/symbols. This representation is also called a
How does php + mysql Query The Chinese character database based on the first letter of the pinyin alphabet? How does php + mysql Query The Chinese character database based on the first letter of the pinyin alphabet?
For example,
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.