Thanks much for the tip on
I've also learned that UltraEdit (famous Windows editor) encodes files in Latin1 while PyScripter (IDE) uses UTF-8, so the latter is a much better alternative when working with accented strings.
I am using Python 3(.7.0).
Thanks again.
--
Edit: UltraEdit seems to have been rewritten to use Unicode instead.
open(…, encoding='utf-8')
!I've also learned that UltraEdit (famous Windows editor) encodes files in Latin1 while PyScripter (IDE) uses UTF-8, so the latter is a much better alternative when working with accented strings.
stuff = "Crème" with open("cp1252.txt", 'w') as outFile: outFile.write(stuff) with open("utf8.txt", mode='w',encoding='utf-8') as outFile: outFile.write(stuff)Using open() without any additional option meant that I ended up with a mix of Latin1 and UTF-8, which prevented me from using GpsBabel to merge GPX files.
I am using Python 3(.7.0).
Thanks again.
--
Edit: UltraEdit seems to have been rewritten to use Unicode instead.