New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Format error. #2874
Comments
Saves as UTF-8 here and Python happily accepts non-ASCII characters.
|
The posted error message rather indicates a problem with your Python code. |
Follow these steps can reproduce the error:
4.Save it.
|
@Independent-X what is your locale, and what does the To be clear, files are saved with the encoding set in the save dialog (which defaults to what is in the status bar). Users can set what encoding they want a file saved in, and Geany does what it is told, so it will never read the contents of the file to decide an encoding to save a file. The contents are considered when loading (unless the user explicitly specifies an encoding) because there is no setting available then. That is the only time the |
Adding to what @elextr mentioned, the default encoding (for new files) is actually set in menu |
I cannot reproduce this.
|
Closed as no response, @Independent-X if you answer the questions asked in various comments above it can be re-opened if necessary. |
When I create a new main.py with Geany and save it, it is always saved in ANSI format instead of UTF-8 format.
It always causes an error when I try to test my program if I add any character which isn't an English character to it:
SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0x** in position 0: invalid start byte.
The text was updated successfully, but these errors were encountered: