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.
1. Background: During the project, a small business that displays the customer Department name (pinyin) means that there is a corresponding pinyin under the department name, but there is no corresponding field in the existing database, in addition, the number of departments is relatively large, and it takes a long time to add them. I wonder if it can be implemented in js and processed on the page.2. Princip
, check whether there are "?" data records in the added table. Question mark. If yes, the database encoding is incorrect.PY HZ1 HZ2A challengeBC branch networksD zookeeperE branch networksF producerG branch networksH branch networksJ.K branch networksL zookeeperM branch networksN branch networksOP branch exposureQ qizhenR branch networksS branch networksT he YiW YunxiaoX Xi JinpingY BranchZ branch networks
2. MySQL queries the first Chinese
Package test;
Import java. Io. unsupportedencodingexception;
Import net. SourceForge. pinyin4j. pinyinhelper;
/***//*** Obtain the first letter of a given Chinese character string, that is, the initials.* * ** @ Version 1.0* @ Date 2004-02-19* Note: Only Chinese characters in the gb2312 character set are supported.*/Pu
Sometimes the project needs to follow the pinyin of Chinese characters, such as contact list, mineral classification, etc., some of which need to be phonetic Alphabet from A to Z. if the stored Chinese character field encoding uses the GBK character set, because the GBK cod
Recently, I plan to create a phone book web project based on the first character of a string (the first character of a Chinese character in Chinese pinyin). Because the Web itself does not support
Because mysql does not support Chinese, it is not difficult to sort Chinese by pinyin. Today we use the convert function to implement it, any encoding can be sorted in pinyin. For more information, see.
Because mysql does not support Chinese, it is not difficult to sort
simplified Chinese, numbers to uppercase, and Chinese characters to PinYin? I have met it all, so I think this is really good... the disadvantage of the US is that the numbers are written in uppercase, which is different from the Chinese habits.
Code example:
Using System;Using Microsoft. International. Converters. Pi
;
}
$ Result [] = $ this-> zh_to_py ($ p );
If ($ first ){
Return $ result [0];
}
}
Return implode ($ delimiter, $ result );
}
}
// ------------------------- Chinese pinyin conversion ends --------------------------------//
// The Chinese character is double byte, so two bytes need to b
C # obtain the first letter of Chinese characters and pinyin,
I recently learned a truth, and I will share it with you here: Education represents your past, your present abilities represent your present, and learning represents your future.
Ten years in Hexi, do not bully teenagers
There is no end to learning, keep improving
This section describes how to obtain the first letter of
Tags: cfstringtransform Chinese character to PinYin
Recently, in an address book project, you need to read contacts into the app memory (there are about 400 contacts in the address book) and sort them by the first letter. Here we use the built-in IOS system interface when converting Chinese characters into
Php Chinese to Pinyin lt ;? Php *** converting Chinese characters into pinyin and pinyin into Chinese characters ** classcharset {private $ _ codearray (array (a,-20319), array (ai,-20317 ), array (an,-20304), php
Option Explicitfunction PY (TT as String) as Variant ' Custom function, purpose: To change a group of Chinese characters into the first letter of a set of Chinese pinyin.Dim i%, temp$PY = ""For i = 1 to Len (TT)temp = ASC (mid$ (TT, I, 1))If temp > 255 Or Temp py = py Pinyin (mid$ (TT, I, 1)) ' converted to pinyin ini
Problem Solving ideas: the use of Chinese characters in the computer code to the Chinese character of the first pinyin.
static public string GetChineseSpell(string strText) { int len = strText.Length; string myStr = ""; for(int i=0;i { myStr += getSpell(strText.Substring(i,1)); } return myStr; } static public string
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.