4
I am creating software in Python, I’m having trouble accentuating the strings.
The program is simple.. It asks a question to the user (name, version, description, etc.) and adds the answers to those questions in the middle of a text file.. At the end it displays the contents of the text file for the user to copy.
But when I show it, the accents don’t go right.. I’ll leave one. print error for you to see... I have tried to put u before the file and even input to test and still the error persists.
I gave one sys.getdefaultencoding() in the file to know what format and is utf-8.
I’ve tried to put:
# -- coding: UTF-8 --# -- coding: iso-8859-1 --#-- coding: latin-1 ---- coding: CP850 --
Please avoid long discussions in the comments; your talk was moved to the chat
– Maniero