All:
I can enter UTF-8 characters using the ever so easy to remember "CTRL+SHIFT+u ... four digits ... ENTER" method, but it won't save:
"An error occurred while converting the file from UTF-8 in "ISO-8859-1". The file remains unsaved."
Is there a solution? Actually I don't even need UTF, but I would like to add, say ASCII #127 or another ASCII extended character.
On 2021-01-15 8:14 a.m., Ray Andrews wrote:
All:
I can enter UTF-8 characters using the ever so easy to remember "CTRL+SHIFT+u ... four digits ... ENTER" method, but it won't save:
"An error occurred while converting the file from UTF-8 in "ISO-8859-1". The file remains unsaved."
Is there a solution? Actually I don't even need UTF, but I would like to add, say ASCII #127 or another ASCII extended character.
Hi,
Probably to best solution in 2021 is to just switch the file to use UTF-8 (which should be the default IMO, even on Windows).
Per Document: Document->Set Encoding->Unicode->Unicode (UTF-8)
Default: Edit->Preferences->Files->Default Encoding
Then you can use the Ctrl+Shift+u method. UTF-8 overlaps with ASCII for the first 127 characters. I believe all of the characters in all the various "extended" ASCII codepages can be represented in Unicode as well.
If you must use ISO-8859-1 encoding, I don't know the answer since Geany doesn't seem to support the Alt+<NumPadDigits> way that other apps like Notepad support.
Regards, Matthew Brush
On 2021-01-15 1:16 p.m., Matthew Brush wrote:
On 2021-01-15 8:14 a.m., Ray Andrews wrote:
All:
I can enter UTF-8 characters using the ever so easy to remember "CTRL+SHIFT+u ... four digits ... ENTER" method, but it won't save:
"An error occurred while converting the file from UTF-8 in "ISO-8859-1". The file remains unsaved."
Is there a solution? Actually I don't even need UTF, but I would like to add, say ASCII #127 or another ASCII extended character.
Hi,
Probably to best solution in 2021 is to just switch the file to use UTF-8 (which should be the default IMO, even on Windows).
Per Document: Document->Set Encoding->Unicode->Unicode (UTF-8)
Default: Edit->Preferences->Files->Default Encoding
That's what it always has been, yet when I set the encoding for the document itself, everything is fine, so go figger. Thanks Matt.
On Sat, 16 Jan 2021 at 09:20, Ray Andrews rayandrews@eastlink.ca wrote:
On 2021-01-15 1:16 p.m., Matthew Brush wrote:
On 2021-01-15 8:14 a.m., Ray Andrews wrote:
All:
I can enter UTF-8 characters using the ever so easy to remember "CTRL+SHIFT+u ... four digits ... ENTER" method, but it won't save:
"An error occurred while converting the file from UTF-8 in "ISO-8859-1". The file remains unsaved."
Is there a solution? Actually I don't even need UTF, but I would like to add, say ASCII #127 or another ASCII extended character.
Hi,
Probably to best solution in 2021 is to just switch the file to use UTF-8 (which should be the default IMO, even on Windows).
Per Document: Document->Set Encoding->Unicode->Unicode (UTF-8)
Default: Edit->Preferences->Files->Default Encoding
That's what it always has been, yet when I set the encoding for the document itself, everything is fine, so go figger.
Changing the global default does not change the encoding for files already open, thats why you had to change it for the file as well.
Cheers Lex
Thanks Matt.
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Changing the global default does not change the encoding for files already open, thats why you had to change it for the file as well.
Cheers Lex
But the global default has never been touched by me. When I checked it was utf-8 and I've never even looked at that setting before let alone change it. Dunno, maybe somehow I was doing something else wrong.
Le 15/01/2021 à 17:14, Ray Andrews a écrit :
All:
I can enter UTF-8 characters using the ever so easy to remember "CTRL+SHIFT+u ... four digits ... ENTER" method, but it won't save:
"An error occurred while converting the file from UTF-8 in "ISO-8859-1". The file remains unsaved."
Is there a solution? Actually I don't even need UTF, but I would like to add, say ASCII #127 or another ASCII extended character.
127 is not extended ASCII, but apparently whether or not it's really part of ISO-8859-1 is questionable (mostly because it's not really in the C0 group).
In any case, entering a Unicode character in any way should work, and you should be able to save it *so long as it can be represented in the target encoding*. And that's a big "if", as e.g. ISO-8859-1 only has 194 printable characters, and anyway only 256 possible values. And beware that all ISO-8859-* tables are different and don't support the same set of characters -- there is some overlap, but each is unique. The message you see suggests your target encoding is ISO-8859-1 and it can't represent one of of the characters you entered. Maybe ISO-8859-15 could? or another one.
All this said, I fully support Matthew's take on this: as of 2021, non-Unicode encodings should be left to backward compatibility requirements with historic software. And UTF-8 is by far my favorite one, if for any reason because it provides US-ASCII compatibility.
On 2021-01-16 1:45 p.m., Colomban Wendling wrote:
All this said, I fully support Matthew's take on this: as of 2021, non-Unicode encodings should be left to backward compatibility requirements with historic software. And UTF-8 is by far my favorite one, if for any reason because it provides US-ASCII compatibility.
God knows. I don't know why I was having that issue and I can't replicate it now. How it ever got to be anything other than UTF-8 is a mystery. I sure didn't do it.