asp.net汉字转拼音和获取汉字首字母的代码

2019-05-12 08:16:07刘景俊

                        }
                    }
                }
            }
            return myStr.ToString();
        }// GetChineseSpell  

}

使用:
lbPinyin.Text ="首字母是:"+ StrToPinyin.GetChineseSpell(txtChn.Text)+"<br>拼音是:"+ConvertHzToPz_Gb2312.Convert(txtChn.Text);