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.
In the first year of elementary school, the young girl finally gave her brains in pinyin, and finally converted her Chinese into a Chinese pinyin syllable. For example, she entered a single Chinese character to display all the
Get the capital pinyin of the first word in Chinese sentence
'******************************
' Function: Getpychar (char)
' parameter: Char, any Chinese character or sentence
' Author: Arisisi
' Date: 2007/7/15
' Description: Get a capital pinyin of the first word in
From: http://hi.baidu.com/cpf_519408891/item/7bf088f365753705ce9f32b6
After installation, the problem is that Chinese characters and Chinese characters cannot be displayed in full English. You can install the two Chinese Character packages on the CD.The file name is as follows. Note that different versions of t
Tags: serve string union all else Lin Sha BSP ext NIOThe function passes in a string and returns the data: if it is a kanji character, the first letter of the character is returned, and if it is a non-kanji character, it returns itself.Second, the use of the knowledge Point: The Chinese
This article mainly introduces PHP based on custom function implementation of Chinese character to pinyin function, involving PHP form and string encoding conversion, traversal and other related operations skills, the need for friends can refer to the following
In this paper, we describe the function of the Chinese
// -------------------------------------------------------------- Obtain the 8-character Chinese Character pinyin ------------------------------------------------
Tbuf Tbuf _ Lit8 (kstrtest, "Zhengzhou ");Hbufc * Ptest = nhelper: convgbk2unil (kstrtest); // This function is defined in other files. The function is to co
/// /// Abbreviated Chinese character to PinYin
//// Code by MuseStudio@hotmail.com
///// 2004-11-30 /// ///// Public String getpystring (string Str)
{
String tempstr = "";
Foreach (char C in Str)
{If (INT) C >=33 (INT) C {// Reserved letters and symbols
Tempstr + = C. tostring ();
} Else
{// Accumulate the pinyin ini
The problem of converting Chinese characters into pinyin is that I want to bring up the first letter of Chinese characters. I found this function on the internet. However, it is depressing that many of the less commonly used Chinese characters cannot be identified, for example, sequence, sinus, sequence... and so on. I
Provides a variety of official and user-released code examples. For code reference, you are welcome to exchange and learn more about the current comprehensive Chinese Character pinyin, some Chinese characters on the market can be obtained!
You can customize replacement of special punctuation characters.
Based on TP3.
Retrieves a string that conforms to the phonetic index in the specified string list cnstrpublic static string Getspellcode (String cnstr) {String strtemp= "";int ilen=cnstr.length;int i=0;for (i=0;iStrtemp+=getcharspellcode (cnstr.substring (i,1));}return strtemp;}Get the first letter of the pinyin of a Chinese character, and if it is an English letter, return th
for(inti = Aboutpos + +; I >= Aboutpos; i--) { if(Pyvalue[i] CHR) { //Console.WriteLine ("Find the first in-machine code smaller than the one you want to find in-machine code:" + pyvalue[i). ToString ()); returnPyname[i]; } } Break; } } } //if it's in level two kanji,
Let's take a look at how to get the first letter of a single Chinese character. See the following function. It supports GBK and UTF8 encoding: The code is as follows:Copy code Function getfirstchar ($ s0 ){$ Fchar = ord ($ s0 {0 });If ($ fchar> = ord ("A") and $ fchar $ S1 = iconv ("UTF-8", "gb2312", $ s0 );$ S2 = iconv ("gb2312", "UTF-8", $ s1 );If
Need to download pinyin4j: http://pinyin4j.sourceforge.net/
Code
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Package utils;
Import net. SourceForge. pinyin4j .*;Import net. SourceForge. pinyin4j. format .*;Import net. SourceForge. pinyin4j. format. Exception .*;
Public class pinyin {/*** Convert Chinese characters to full spelling** @ Param SRC* @ Retu
Method 1: first query all records and then query the records after the logical layer is converted to the first letter of the pinyin alphabet. It is obvious that dummies will do this.
Method 2: Add a field to the table to be searched to store the pinyin alphabet corresponding to the content of the field to be searched, and query the two fields at the same time during the search. This method is feasible,
Chinese character | Pinyin many problems are caused by Chinese problems
If the filename is best not in Chinese
Now the solution is usually to generate an ID, the ID to do the file name
If the URL has Chinese characters on the page
This article introduces in detail the Bug that ExtjsGird supports Chinese pinyin sorting and fixes Chinese Character sorting exceptions. localeCompare supports comparing Chinese character strings, Firefox and IE. If you are intere
During development, sometimes we need to sort the attributes of objects in a set in pinyin order to help us quickly find Chinese characters. I use the Comparator interface, define sorting rules in this interface, get the Chinese character encoding of the comparison object, convert it into a String, and use the String c
Chinese characters into pinyin (PHP version) 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 g
Chinese character | Pinyin many problems are caused by Chinese problems
If the filename is best not in Chinese
Now the solution is usually to generate an ID, the ID to do the file name
If the URL has Chinese characters on the page
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.