Extra characters in readlines and join python? How to remove “”? Byte Order Mark?
问题 The python code: sku_specs = "./item_specs.txt" def item_specs(): g = open(sku_specs,"r") lines = g.readlines() lines = "<br />".join(lines) return lines f = open("ouput.txt","a") f.write("Some stuff"+item_specs()+"more stuff") f.write("more stuff") f.close() The extra characters that show up even if the file is "blank" are  When I open the file in Notepad++ and "show all symobls" I still get these BOM characters when the .txt file appears to be blank. Related: How do I remove  from the