Explorar o código

标段名,特殊汉字问题

MaiXinRong %!s(int64=5) %!d(string=hai) anos
pai
achega
106fc067c7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;