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.
The format of the pinyin Chinese character table is as follows:
Private string [] wordlist =
{
"",
"I'm sorry, I'm sorry, but I'm sorry, I am sorry? Why? Why? Please refer to the following link for more information:? Why? Why? Why? Why? Success ",
...
"Why? Why? ? When there are too many other users ",
"Why? I am the most vulnerable to fraud? Why
Chinese character | Pinyin many problems are caused by the Chinese problem
such as file name best not in Chinese
Now the solution is generally to generate an ID, the ID to do the filename
Web page If the URL with Chinese cha
Chinese characters | Pinyin many servers for Chinese file name support is not very good, there is no good way to solve it??? Now the solution is usually to generate an ID, the ID to do the file name; If the URL has a Chinese character on the page, it often goes wrong. Now th
Use the Chinese character encoding in the computer to get the first Pinyin of the Chinese character:
Static Public String getchinesespell (string strtext)
{
Int Len = strtext. length;
String mystr = "";
For (INT I = 0; I {
Mystr + = getspell (strtext. substring (I, 1 ));
}
A function that converts Chinese characters into pinyin. many problems are caused by Chinese characters. for example, it is best to use Chinese characters in different file names.
The code is as follows:
$ D = array (
Array ( quot; a quot;,-20319 ),
Array ("ai",-20317 ),
Array ("an",-20304 ),
Array ( quot; ang quot
In reality we often see such a description, ranked in the first alphabetical order. This is the sort of method most Chinese use. So how do you do it in a PHP program? The following to share in the PHP program to obtain the first letter of Chinese pinyin, the most of the online search is problematic, this is the author of practical application, really can use OH.
The code is as follows:Copy code Import java. util. Comparator;Import java. util. ArrayList;Import java. util. Collections;Public class Tester {Public static void main (String [] args ){ArrayList list = new ArrayList ();List. add ("East Bay ");List. add ("proudly ");List. add ("East Bay-cave ");List. add ("Proud Drug Store ");/** Using the sort () method of Collections to sort the sort () method requires that multiple parameters be passed. One is Collec
;
}
$ret. =g ($p);
}
return $ret;
}
Echo (substr (C ("script"), 0, 1));
?>
Output: J
It's easy to take the first letter, the first character is a
Echo (substr (C ("script"), 0, 1));
Convert to uppercase:
Echo Strtoupper (substr (C ("Bull Girl"), 0, 1));
Output: J
Echo (substr (C ("script"), 0,7));
Output: Jiaoben
Current 1/2 Page 12 next page
The above describes the Presentationfontcache.exe PHP under the conversion of
Gets the first letter of Chinese pinyin in the string (modified according to http://blog.csdn.net/iwebsms/archive/2004/09/28/119851.aspx)
Perhaps the code is bloated, hope to have friends to help correct
Returns the first letter of a given string
private string Indexcode (String indextxt)
{
String _temp=null;
for (int i=0;i_temp = _temp + getoneindex (indextxt.substring (i,1));
return _temp;
}
Get the
Convert Chinese characters to pinyin first letter
private string Chinesecap (String chinesestr)
{
String Capstr= "";
byte[] ZW = new byte[2];
Long Chinesestr_int;
String Charstr,chinastr= "";
for (int i=0;i{
Charstr=chinesestr.substring (i,1). ToString ();
Zw=system.text.encoding.default.getbytes (CHARSTR);
A byte array that gets character characters
if (ZW. leng
/// /// Obtain the first letter (uppercase) of the character string based on the Chinese character, including the polyphonic words/// /// /// Public static string GetFirstSpellByChinese (string chineseStr){Int I, j, k, m;String tmpStr;String returnStr = ""; // string that returns the final resultString [] tmpArr;For (I = 0; I {// Process the
Chinese character regular .. Friends who are familiar with character sets .. What are the situations for matching Chinese character regular expressions? In each case, how do I write regular expressions? For example, how do I match the ASCII and UNICODE encoding gb2312 nbsp;
Chinese character regular .. Friends who are familiar with character sets .. What are the situations for matching Chinese character regular expressions? In each case, how do I write regular expressions? For example, how do I match the ASCII and UNICODE encoding gb2312 nbsp;
in terms of compatibility and performance.
Pinyin. php contains a total of 25961 characters, including 20902 basic Chinese characters (Unicode code 0x4e00-0x9fa5) and 6582 Chinese characters (Unicode code 0x3400-0x4db5). Only the Pinyin of 5059 uncommon characters is collected, the word list does not contain the 5059
), the char function is used in Excel:For example, char (16 + 128 + 32) * 256 + (1 + 128 + 32) can get 'Ah'
*//*
References:Chinese character encoding and representation
1) Chinese Character Exchange Code (Chinese character code) Chinese
The following tool determines whether unicode is a Chinese character, number, English, or other character. Full-width to half-width. Unicode string normalization. There is also a program that can process the conversion of Chinese characters into pinyin, which is still being
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.