Python Error: UnicodeEncodeError: ‘charmap’ codec can’t encode character
Question: I’ve discovered an error on your example ( https://www.example-code.com/chilkat2-python/xml_i.asp ) as follows… AccountID: f1f489fb-9267-429e-a1dc-bc63a7c3f71e Traceback (most recent call last): File “M:\EXPORTIT\PY\CK_xero_accounts.py”, line 50, in print(“Name: ” + xml.GetChildContent(“Accounts|Account[i]|Name”)) File “m:\Python\Python35-32\lib\encodings\cp437.py”, line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_map)[0] UnicodeEncodeError: ‘charmap’ codec can’t encode character ‘\u2013′ in position 20: character maps to It’s failing on the this line from the “https://www.chilkatsoft.com/exampleData/xero_accounts.xml”, Wages […]