'**************************************************' Function name: Chtoeng' function: convert Chinese into pinyin automatically' Parameters: Zh_str-----The Chinese to convert' return value: converted Pinyin'**************************************************Dim Zh_d,zh_e,zh_a,zh_b,zh_i,zh_typeZh_type=1 '//0-all lowerca
The default results are not according to the order of Chinese pinyin, to be sorted by the pinyin of Chinese characters, the character set of the database needs to be UTF8, and then the order is forced to convert the field information into GBK, so that the result is sorted by phonetic sequence.
The code is
/*Boolean cfstringtransform (Cfmutablestringref string, Cfrange *range, Cfstringref transform, Boolean reverse); where The string argument is a string to be converted, such as the Chinese to convert, and it is mutable , it is also used as the final converted string. Range is the range to be converted, and the range of changes after the transformation is output, and if null, is considered a full conversion. Transform can specify what conversion to ma
The use of Win8.1 system users know that the system comes with the Microsoft Pinyin Input method in the input will be a Chinese-English toggle button appears next to the input position, how to hide it?
When we edit the text content on the Web page or on the computer, the cursor position will appear a Microsoft Pinyin input method in the hover
The following describes how to query the initials of Chinese characters and Pinyin in MySQL. This method is very useful. If you have encountered similar problems before, take a look.
To query the initials of Chinese characters and Pinyin in MySQL, follow these steps:
1. Create a pi
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 code encoding itself uses the phonetic sorting method (commonly used first-class
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 Chinese pinyin function (a total of 25961 characters, including 20,902 basic
-(NSString *) Chinesetopinyin: (NSString *) chinese{cfstringref Hanzi=(__bridge cfstringref) (Chinese); Cfmutablestringrefstring= Cfstringcreatemutablecopy (NULL,0, Hanzi); //boolean cfstringtransform (Cfmutablestringref string, Cfrange *range, Cfstringref transform, Boolean reverse); //string to be converted//range to convert, NULL for all//transform what to do about the conversion//Kcfstringtransformmanda
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.
Add the "binary" attribute to a field that contains Chinese characters f
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:
Package GOV.MCA;
/*** Created by IntelliJ idea
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
Solr6.5 configure Chinese Word Segmentation IKAnalyzer and pinyin word segmentation pinyinAnalyzer (2), solrikanalyzer Configuration
Previously, the installation and configuration of Solr6.5 on Centos6 (I) introduced solr6.5 installation. This article mainly introduces how to create Solr Core and configure Chinese IKAnalyzer word segmentation and
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
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 highlighting produced by Actipro CodeHighlighter
: This article mainly introduces how PHP separates consecutive Chinese pinyin characters. For more information about PHP tutorials, see. Problem description:
Example: woshidewenfensi => wo shi de wen fen siWoshidewenfensi may have been separated during input. for example, woshi dewen fensi or woshi de wen fensi should eventually be converted to wo shi de wen fen si. All special characters and punctuation m
Function code for converting Chinese characters into pinyin characters in php. Click here to download the source file copy code: functionPinyin ($ _ String, $ _ Codegb2312) {$ _ DataKeya | ai | an | ang | ao | ba | bai | ban | bang | bao | bei | ben | beng | bi | bian | biao | bie | bin click here download source file
The code is as follows:
Function Pinyin ($
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.