|
@@ -150,7 +150,7 @@ static char* GBToUTF8(const char* gb2312)
|
|
|
#endif /* _WIN32 */
|
|
|
|
|
|
/**
|
|
|
- * @brief 解析字符串文件信息
|
|
|
+ * @brief 解析字符串文件信息,如果FTP服务器规定好个编码,不需要进行转换
|
|
|
*
|
|
|
* @param strSrc 读取到的字符串
|
|
|
* @param fileList 文件信息列表
|
|
@@ -160,8 +160,8 @@ static char* GBToUTF8(const char* gb2312)
|
|
|
static bool parseFileInfo(const std::string& strSrc, std::vector<CF_FileInfo>& fileInfo)
|
|
|
{
|
|
|
#if defined(_WIN32)
|
|
|
- auto str1 = GBToUTF8(strSrc.c_str());
|
|
|
- std::string str2 = str1;
|
|
|
+ // auto str1 = GBToUTF8(strSrc.c_str());
|
|
|
+ std::string str2 = strSrc;
|
|
|
#else
|
|
|
std::string str2 = strSrc;
|
|
|
#endif /* _WIN32 */
|