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.
Original: php kanji Pinyin [contains 20,902 basic Chinese characters +5059 uncommon words]Yesterday in the conversion pinyin found a bug, there are many words can not be converted, but also can not blame him, after all, People's Coucay 8k, should only be used.Helpless on the Internet to find the next, found an article "the most full of php
=Pinyinhelper.tohanyupinyinstringarray (word); About if(Pinyinarray! =NULL) { $convert + = Pinyinarray[0].charat (0); -}Else { -Convert + =Word; - } A } + returnconvert; the } - $ /** the * Convert string to ASCII code the * the * @paramcnstr the * @returnString - */ in Public Staticstring Getcnascii (String cnstr) { theStringBuffer strbuf =NewStringBuffer (); the //Convert a string into a sequence of bytes About
Generate a train station Chinese name and Pinyin correspondence table! Seeking Ideas
Annex one is the national railway station Chinese name list, the other is the Chinese pinyin library, according to these two documents finally generated a railway station
Chinese character | pinyin
There are a lot of asp,php to take Chinese pinyin algorithm, but these algorithms are not very effective in C #, because in Asp,php,delphi and other languages, they represent the method of character is "
The first letter of Chinese characters in php to pinyin. PHP obtains the first letter of pinyin.
After running the program, some characters in the string cannot be converted. If you enter these words separately, you can directly convert them to read the first letter of the alphabet.
It won't work in the string. The program code is as follows:
Function getfirs
IOS simple handwritten Chinese Character Recognition and ios Chinese Character RecognitionIntroduction
Some time ago, I added a small feature to banxun: I wrote Chinese characters according to the pinyin prompts. After the submiss
I have recently studied subtext, and many of the classes in subtext. Framework are very classical. We will go deep into the value.
In subtext. Framework, entries. CS provides "obtain the first Chinese Character pinyin". We will continue to share our learning experience with you later.
Reference
Using system. text;
Using system. Text. regularexpressions;
Code high
Here we use the mssql Stored procedure to obtain the advanced processing method of the letter function of the Chinese character pinyin header. If you need it, you can refer to it. php and asp.net are not required here.
Here we use the mssql Stored procedure to obtain the advanced processing method of the letter function of the
function | Chinese pinyin just finishing up-the function of Chinese pinyin abbreviation (C #)
On the csdn looked for a moment, did not find a complete conversion function, special on the basis of the predecessors to organize a bit, the next project may be used. Thanks to Bugfree (eight flying).
Special effects for converting Chinese characters to PinYin Based on jQuery. Hz2Py. js plug-in
JQuery. hz2Py. the conversion of Chinese characters to PinYin implemented by the js plug-in is a very practical online Conversion Function. This plug-in has packaged Chinese charac
(tempcarray [idx]); Else { For ( Int I = Pyvaluearr . Length -1 ; I > = 0 ; I-- ){ If (Pyvaluearr [I] Cascii) {sbresult . Append (pycharacterarr [I]); Break ;}}}}} Return Sbresult . Tostring ();} /// Output only the combination of the first letter /// "Cnstring" > Chinese string to be converted Pinyin initial character combination result Public stat
Fristpinyin: This function converts the first character of a Chinese string into a pinyin (for example, "Chinese"->z)
Copy Code code as follows:
CREATE FUNCTION ' Fristpinyin ' (p_name VARCHAR (255)) RETURNS VARCHAR (255) CHARSET UTF8
BEGIN
DECLARE V_return VARCHAR (255);
SET V_return = ELT (INTERV
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. Lt ;? Phpfunction nbsp; Pinyin ($ _ String, $ _ Code
I have previously written a Chinese character conversion using SQL stored procedures and triggers. Address: http://www.cnblogs.com/Capricornus/archive/2010/02/08/1665783.html
In fact, this can also be done in C.
Code
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> /// /// Abbreviation for converting
Description: A Java class used to take the first letter of Chinese pinyin, for example: The Chinese character "People's Republic of China" takes the Chinese pinyin first letter the result is ZHRMGHG.
The procedure is as follows:
P
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
FristPinyin: This function is used to convert the first Chinese character of a Chinese string into a pinyin letter (for example, "Chinese"-> Z)Copy codeThe Code is as follows:Create function 'fristpinin' (P_NAME VARCHAR (255) RETURNS varchar (255) CHARSET utf8BEGINDECLARE V_
Recently encountered in the project of Chinese Pinyin (with DataList implementation input Chinese, to the database matching the corresponding records, here no longer repeat), so found on the Internet pinyin4j This toolkit, very useful, others do not say, directly on the code:
Import Java.util.HashSet;
Import Java.util.Set;
Import Net.sourceforge.pinyin4j.
JSPinyin is better than the library of pinyin. js, and it is more accurate to translate Chinese into pinyin.
JSPinyin provides two methods:
1) One is to translate Chinese characters into pinyin, where the first letter of each word is capitalized;
1Pinyin. getFullChars (th
PHP UTF-8 Chinese to Pinyin processing class, the performance has been optimized to the extreme. Optimized the traditional Pinyin conversion processing class algorithm, specifically for the UTF-8 character set for processing, Chinese to
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.