Exporting notes in .txt file

Hello everyone!

I’ve done a small script that exports the notes written in a file (the ones in Font Info) in a .txt file. However, I’m having a traceback error:

  File "<macro>", line 47, in <module>
UnicodeEncodeError: 'ascii' codec can't encode characters in position 51-106: ordinal not in range(128)

The point is that it creates the .txt file in file’s path but obviously it is empty.

I can send the script to those who will be willing to help me.

Thank you in advance for any help.

This should help: https://docs.python.org/2/howto/unicode.html
or more specifically: https://stackoverflow.com/questions/6048085/writing-unicode-text-to-a-text-file

1 Like

Thank you so much once again, Georg! It worked perfectly.

Yes, also a favorite trick of mine. :slight_smile:



Hahah, thanks for the irony, @mekkablue