Przeglądaj źródła

标段名,特殊汉字问题

MaiXinRong 5 lat temu
rodzic
commit
106fc067c7
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      Forms/NewProjectFrm.pas

+ 1 - 1
Forms/NewProjectFrm.pas

@@ -74,7 +74,7 @@ end;
 
 function TNewProjectForm.CheckLegalChar: Boolean;
 begin
-  Result := CheckFileNameLegal(GetValue);
+  Result := CheckFileNameLegal(AnsiToUtf8(GetValue));
   if not Result then
     labTip.Caption := '不能包含特殊字符[/ \ : * ? " < > |],请重新输入!';
 end;