windows中文件名的默认编码格式为GBK,故在QT软件中显示中文,则需要将GBK编码转换为UTF-8。转换代码如下
string GbkToUtf8(const char *src_str)
{
int len = MultiByteToWideChar(CP_ACP, 0, src_str, -1, NULL,
windows中文件名的默认编码格式为GBK,故在QT软件中显示中文,则需要将GBK编码转换为UTF-8。转换代码如下
string GbkToUtf8(const char *src_str)
{
int len = MultiByteToWideChar(CP_ACP, 0, src_str, -1, NULL,