Browse Source

V0.2.15
1、修改了CurlFtp转换格式部分,不再进行GB2312和UTF-8的转换,直接设置FTP服务器编码为UTF-8

Apple 6 months ago
parent
commit
3cfd427dbc
1 changed files with 3 additions and 3 deletions
  1. 3 3
      common/CurlFtp/CurlFtp.cpp

+ 3 - 3
common/CurlFtp/CurlFtp.cpp

@@ -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 */