소스 검색

标段名,特殊汉字问题

MaiXinRong 5 년 전
부모
커밋
106fc067c7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;