瀏覽代碼

Try to fix windows encoding

nordsoft 3 年之前
父節點
當前提交
410c402dd6
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      launcher/lobby/lobby_moc.h

+ 4 - 0
launcher/lobby/lobby_moc.h

@@ -6,7 +6,11 @@
 #include <QAbstractSocket>
 
 const unsigned int ProtocolVersion = 1;
+#ifdef VCMI_WINDOWS
+const std::string ProtocolEncoding = "utf16";
+#else
 const std::string ProtocolEncoding = "utf8";
+#endif
 
 class ProtocolError: public std::runtime_error
 {