随笔分类 - Chinese Encoding
得到常用汉字的拼音首字母
摘要:这是网上的一段源码,能够将一个汉语字符串转换成拼音的首字母。 1 #include <iostream> 2 #include <string> 3 using namespace std; 4 5 static char convert(wchar_t n); 6 static bool In(wchar_t start, wchar_t end, wchar_t code); 7 8 int main(int argc, char* argv[]) ...
阅读全文
How to slove the problem of Garbage Characters of Chinese and Errors of Images in Qt
摘要:Sometimes it is miserable to find that the release version of your software has Garbage Characters and Errors in Images.Here is a good solution which has been tested to be ok.1. In the main() function of your program, add this at the very beginning: QApplication::addLibraryPath("./plugins"
阅读全文
浙公网安备 33010602011771号