| | |
| | | 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); |
| | | } |