Python 2.7 CSV file read/write \xef\xbb\xbf code
问题 I have a question about Python 2.7 read/write csv file with ' utf-8-sig ' code, my csv . header is ['\xef\xbb\xbfID;timestamp;CustomerID;Email'] there have some code( "\xef\xbb\xbfID" ) I read from file A.csv and I want write the same code and header to file B.csv My print log is shows: ['\xef\xbb\xbfID;timestamp;CustomerID;Email'] But the actual output file header it looks like ÔªøID;timestamp Here is the code: def remove_gdpr_info_from_csv(file_path, file_name, temp_folder, original_header)