| | |
| | | /// <param name="entityName">å®ä½ç±»å</param> |
| | | /// <param name="modulelogo">模ååå</param> |
| | | /// <returns></returns> |
| | | public static bool Export2File_V2(string _strPath,string fileName, string _tableName, string _code, FileType fileType, |
| | | string filePrefixName, string entityName, string modulelogo) |
| | | public static bool Export2File_V2(string _strPath, string fileName,string _code) |
| | | { |
| | | string fileFolderPath = _strPath + "\\"; |
| | | |
| | |
| | | Directory.CreateDirectory(fileFolderPath); |
| | | } |
| | | string filePath = fileFolderPath + "\\" + fileName; |
| | | using (StreamWriter outfile = new StreamWriter(filePath, false, Encoding.GetEncoding("UTF-8"))) |
| | | //using (StreamWriter outfile = new StreamWriter(filePath, false, Encoding.GetEncoding("UTF-8"))) |
| | | //{ |
| | | // outfile.Write(_code); |
| | | //} |
| | | //ä¿®å¤ä¸ºå¥è¿æ ·çæçæä»¶ãç±»åæ¯ UTF-8-BOMï¼è䏿¯UTF-8é®é¢ ãEditby shaocx,2025-05-06ã |
| | | using (StreamWriter outfile = new StreamWriter(filePath, false, new UTF8Encoding(false))) |
| | | { |
| | | outfile.Write(_code); |
| | | } |