Re: [Github-comments] [geany/geany] Format error. (#2874)

2021-09-09 Thread nomadbyte
Adding to what @elextr mentioned, the default encoding (for new files) is actually set in Preferences > Files. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Github-comments] [geany/geany] Format error. (#2874)

2021-08-28 Thread elextr
@Independent-X what is your locale, and what does the `encoding:` in the status bar show? 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,

Re: [Github-comments] [geany/geany] Format error. (#2874)

2021-08-28 Thread Independent-X
Follow these steps can reproduce the error: 1.Create a new main.py. 2.Delete all the code in it. 3.Write this: > #!/usr/bin/env python > # -*- coding: utf-8 -*- > print("あ") 4.Save it. 5.Try running it. Here is the result: > File "test.py", line 3 > print("��") > ^ > SyntaxError:

Re: [Github-comments] [geany/geany] Format error. (#2874)

2021-08-22 Thread Enrico Tröger
The posted error message rather indicates a problem with your Python code. Without the file in question, it's hard to help. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Github-comments] [geany/geany] Format error. (#2874)

2021-08-22 Thread elextr
Saves as UTF-8 here and Python happily accepts non-ASCII characters. ``` 22:36:50: Geany INFO: Geany 1.38 (git >= b524a58e), en_AU.UTF-8 22:36:50: Geany INFO: GTK 3.24.20, GLib 2.64.6 22:36:50: Geany INFO: OS: Linux Mint 20 (ulyana) ``` -- You are receiving

[Github-comments] [geany/geany] Format error. (#2874)

2021-08-22 Thread Independent-X
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