Hi, i've try geny as html/perl/php editor and foud it wery useful. Thnks, nice work!
I often work with many encoding (koi8-r, windows-1251, and utf-8) and was very happy when i saw encoding selection entry in program menu (document->set encoding). But when I select any of encodings text nothing changes - just tab title become red (if document just open) and status bar displays current selected codepage. - Text/code output is the same.
I've try build lastest snapshot (nightly build), new version displays as 0.10, but it has same problem :(.
On Sun, 22 Oct 2006 17:39:51 +0400, Fedor Fedorovich Lejepekov FFL-Public@Yandex.Ru wrote:
Hi,
I often work with many encoding (koi8-r, windows-1251, and utf-8) and was very happy when i saw encoding selection entry in program menu (document->set encoding). But when I select any of encodings text nothing changes - just tab title become red (if document just open) and status bar displays current selected codepage. - Text/code output is the same.
This is not a bug but a feature ;-). The text in the editor window is always UTF-8 and there is no way to change this. When you change an encoding, the change takes only effect when saving the file. It should be saved in the right encoding to the disk. If you load the file later again, Geany detects the encoding and converts it back to UTF-8 to display it in the editor window.
There are still some problems with detecting the right encoding because if you save a file as KOI8-R and there are no special characters in it but for example only ASCII characters, Geany detects the file as UTF-8. Perhaps this will be fixed sometime, but at the moment I don't know how because there is no information in the file itself about the encoding. The encoding can only be detected by analysing the way how the bytes are stored but if there are only ASCII characters, there is no difference between a file in KIO8-R and UTF-8 encoding.
Any ideas are welcome.
Regards, Enrico
-- Get my GPG key from http://www.uvena.de/pub.key
On Sun, 22 Oct 2006 17:48:08 +0400, Fedor Fedorovich Lejepekov FFL-Public@Yandex.Ru wrote:
ps: if I set default encoding in settings to encoding of text, program don't open file in that encoding (or don't display text correctly)
Again, it's a feature not a bug.
The default encoding in the preferences is used for new files. The encoding of opened files is always detected. But regarding your other mail, I will probably add a drop down box to the open dialog to select an encoding alternatively to autodetection.
Regards, Enrico
-- Get my GPG key from http://www.uvena.de/pub.key
On Sun, 22 Oct 2006 18:02:29 +0400, Fedor Fedorovich Lejepekov FFL-Public@Yandex.Ru wrote:
one more ps :), sorry for mistake in first letter - letter 'a' is little buggy on my keyboard.
I try different variants and found that geany opens document in system (locale) default encoding. I use ru_RU.KOI8-R, and koi8-r encoded text shows OK, but any other not avaliabe to use, as i discribed before.
Can you send me some files to test? It's the best to make a tarball of these file to ensure, their contents won't be mangled by any email programs. Thanks.
Regards, Enrico
-- Get my GPG key from http://www.uvena.de/pub.key
ps: if I set default encoding in settings to encoding of text, program don't open file in that encoding (or don't display text correctly)
one more ps :), sorry for mistake in first letter - letter 'a' is little buggy on my keyboard.
I try different variants and found that geany opens document in system (locale) default encoding. I use ru_RU.KOI8-R, and koi8-r encoded text shows OK, but any other not avaliabe to use, as i discribed before.
Any ideas are welcome.
Hi again, about ideas - may be useful make 'encoding selection' on open file dialog like done in Gedit. (You can select useful codepages and choose them in open dianog)
Примерно в Sun, 22 Oct 2006 15:17:51 +0200 Enrico Tröger enrico.troeger@uvena.de написал(а):
On Sun, 22 Oct 2006 17:48:08 +0400, Fedor Fedorovich Lejepekov FFL-Public@Yandex.Ru wrote:
ps: if I set default encoding in settings to encoding of text, program don't open file in that encoding (or don't display text correctly)
Again, it's a feature not a bug.
Ok, i simple hasn't read your reply that time. :)
The default encoding in the preferences is used for new files. The encoding of opened files is always detected. But regarding your other mail, I will probably add a drop down box to the open dialog to select an encoding alternatively to autodetection.
Thanks, this might be very useful.
Regards, Enrico
-- Get my GPG key from http://www.uvena.de/pub.key
Примерно в Sun, 22 Oct 2006 15:21:49 +0200 Enrico Tröger enrico.troeger@uvena.de написал(а):
On Sun, 22 Oct 2006 18:02:29 +0400, Fedor Fedorovich Lejepekov FFL-Public@Yandex.Ru wrote:
one more ps :), sorry for mistake in first letter - letter 'a' is little buggy on my keyboard.
I try different variants and found that geany opens document in system (locale) default encoding. I use ru_RU.KOI8-R, and koi8-r encoded text shows OK, but any other not avaliabe to use, as i discribed before.
Can you send me some files to test? It's the best to make a tarball of these file to ensure, their contents won't be mangled by any email programs. Thanks.
Regards, Enrico
-- Get my GPG key from http://www.uvena.de/pub.key
Ok, i've send archive.
+ I found menu item File->Reload as, it's have that functionality, which i need now. :)
On Sun, 22 Oct 2006 19:09:57 +0400, Fedor Fedorovich Lejepekov FFL-Public@Yandex.Ru wrote:
Примерно в Sun, 22 Oct 2006 15:21:49 +0200 Enrico Tröger enrico.troeger@uvena.de написал(а):
On Sun, 22 Oct 2006 18:02:29 +0400, Fedor Fedorovich Lejepekov FFL-Public@Yandex.Ru wrote:
one more ps :), sorry for mistake in first letter - letter 'a' is little buggy on my keyboard.
I try different variants and found that geany opens document in system (locale) default encoding. I use ru_RU.KOI8-R, and koi8-r encoded text shows OK, but any other not avaliabe to use, as i discribed before.
Can you send me some files to test? It's the best to make a tarball of these file to ensure, their contents won't be mangled by any email programs. Thanks.
Regards, Enrico
-- Get my GPG key from http://www.uvena.de/pub.key
Ok, i've send archive.
- I found menu item File->Reload as, it's have that functionality,
which i need now. :)
For all who are interested in the problem, the sent files can be found on http://www.uvena.de/tmp/geany_koir_test_files.tar.bz2.
I did some testing with Anjuta 2.0, Gedit and Kate. Anjuta and Gedit can't detect correctly the encoding of test.koi8 and test.cp1251 but at least Gedit can display it correctly when the encoding is specified explicitly. And this can also be done with Geany either by using "Reload As" or by specifying the encoding the file open dialog(added in r919). Kate has a special problem: it offers also a drop down box in the file open dialog to choose an encoding but it seems that it doesn't work. Maybe a bug, I don't know.
So, I hope to choose an encoding in the file open dialog for files which are known to be not detect correctly is enough. At least, I don't know a better way.
Regards, Enrico
-- Get my GPG key from http://www.uvena.de/pub.key
On Mon, 23 Oct 2006 18:39:45 +0200 Enrico Tröger enrico.troeger@uvena.de wrote:
On Sun, 22 Oct 2006 19:09:57 +0400, Fedor Fedorovich Lejepekov FFL-Public@Yandex.Ru wrote:
- I found menu item File->Reload as, it's have that functionality,
which i need now. :)
I hadn't found that either - thanks. However, either I'm doing something wrong or encoding selection is broken on win32, for Russian (1251) at least. However, it works for Polish (1250). Font is set to Verdana, which should work (works with Notepad).
For all who are interested in the problem, the sent files can be found on http://www.uvena.de/tmp/geany_koir_test_files.tar.bz2.
I did some testing with Anjuta 2.0, Gedit and Kate. Anjuta and Gedit can't detect correctly the encoding of test.koi8 and test.cp1251 but at least Gedit can display it correctly when the encoding is specified explicitly. And this can also be done with Geany either by using "Reload As" or by specifying the encoding the file open dialog(added in r919). Kate has a special problem: it offers also a drop down box in the file open dialog to choose an encoding but it seems that it doesn't work. Maybe a bug, I don't know.
Kate works as expected on FC4 with the test files, at least.
Would it be possible to have a Geany r919 (or later) win32 build ? I'm very interested in using and testing this on win32.
Feature request : being able to associate specific file extensions (ex: .rc , .xml, .c) with a specific encoding (respectively windows-1250, utf-8, ansi - these are only examples) in the preferences.
So, I hope to choose an encoding in the file open dialog for files which are known to be not detect correctly is enough. At least, I don't know a better way.
AFAIK, this is a rather good way of doing it.
François
On Tue, 24 Oct 2006 13:50:23 +0200, Francois Cami fcami@winsoft.fr wrote:
On Mon, 23 Oct 2006 18:39:45 +0200 Enrico Tröger enrico.troeger@uvena.de wrote:
On Sun, 22 Oct 2006 19:09:57 +0400, Fedor Fedorovich Lejepekov FFL-Public@Yandex.Ru wrote:
- I found menu item File->Reload as, it's have that functionality,
which i need now. :)
I hadn't found that either - thanks. However, either I'm doing something wrong or encoding selection is broken on win32, for Russian (1251) at least. However, it works for Polish (1250). Font is set to Verdana, which should work (works with Notepad).
Interesting. On my Windows XP(German) cp1251 works but koi8-r doesn't work(works well under Linux). Strange thing, I guess this is related to the Windows locale and/or to the Windows port of GLib.
For all who are interested in the problem, the sent files can be found on http://www.uvena.de/tmp/geany_koir_test_files.tar.bz2.
I did some testing with Anjuta 2.0, Gedit and Kate. Anjuta and Gedit can't detect correctly the encoding of test.koi8 and test.cp1251 but at least Gedit can display it correctly when the encoding is specified explicitly. And this can also be done with Geany either by using "Reload As" or by specifying the encoding the file open dialog(added in r919). Kate has a special problem: it offers also a drop down box in the file open dialog to choose an encoding but it seems that it doesn't work. Maybe a bug, I don't know.
Kate works as expected on FC4 with the test files, at least.
Ok, maybe I did something wrong. But your Kate also doesn't auto detect the encoding, does it?
Would it be possible to have a Geany r919 (or later) win32 build ? I'm very interested in using and testing this on win32.
Of course, please see http://lists.uvena.de/geany/2006-October/000506.html.
Feature request : being able to associate specific file extensions (ex: .rc , .xml, .c) with a specific encoding (respectively windows-1250, utf-8, ansi - these are only examples) in the preferences.
Hmm, maybe. But .c? Are you sure you want to write source code in an non-Utf-8 encoding? By the way, Geany doesn't differ between Ascii and Utf-8 encoding because Ascii is a subset of Utf-8 and so if a file has an Ascii encoding it is always validate Utf-8.
Regards, Enrico
-- Get my GPG key from http://www.uvena.de/pub.key
On Tue, 24 Oct 2006 22:06:26 +0200 Enrico Tröger enrico.troeger@uvena.de wrote:
On Tue, 24 Oct 2006 13:50:23 +0200, Francois Cami fcami@winsoft.fr wrote:
On Mon, 23 Oct 2006 18:39:45 +0200 Enrico Tröger enrico.troeger@uvena.de wrote:
On Sun, 22 Oct 2006 19:09:57 +0400, Fedor Fedorovich Lejepekov FFL-Public@Yandex.Ru wrote:
- I found menu item File->Reload as, it's have that
functionality, which i need now. :)
I hadn't found that either - thanks. However, either I'm doing something wrong or encoding selection is broken on win32, for Russian (1251) at least. However, it works for Polish (1250). Font is set to Verdana, which should work (works with Notepad).
Interesting. On my Windows XP(German) cp1251 works but koi8-r doesn't work(works well under Linux). Strange thing, I guess this is related to the Windows locale and/or to the Windows port of GLib.
I can't comment on that :)
For all who are interested in the problem, the sent files can be found on http://www.uvena.de/tmp/geany_koir_test_files.tar.bz2.
I did some testing with Anjuta 2.0, Gedit and Kate. Anjuta and Gedit can't detect correctly the encoding of test.koi8 and test.cp1251 but at least Gedit can display it correctly when the encoding is specified explicitly. And this can also be done with Geany either by using "Reload As" or by specifying the encoding the file open dialog(added in r919). Kate has a special problem: it offers also a drop down box in the file open dialog to choose an encoding but it seems that it doesn't work. Maybe a bug, I don't know.
Kate works as expected on FC4 with the test files, at least.
Ok, maybe I did something wrong. But your Kate also doesn't auto detect the encoding, does it?
I didn't test that yesterday, I only tried selecting the encoding in the "open file" dialog before encoding. However, I've just tested again today without selecting the encoding - and it auto-detected it just fine. package is kdebase-3.5.3-0.2.fc4
Would it be possible to have a Geany r919 (or later) win32 build ? I'm very interested in using and testing this on win32.
Of course, please see http://lists.uvena.de/geany/2006-October/000506.html.
Thanks a lot ! Will test today.
Feature request : being able to associate specific file extensions (ex: .rc , .xml, .c) with a specific encoding (respectively windows-1250, utf-8, ansi - these are only examples) in the preferences.
Hmm, maybe. But .c? Are you sure you want to write source code in an non-Utf-8 encoding? By the way, Geany doesn't differ between Ascii and Utf-8 encoding because Ascii is a subset of Utf-8 and so if a file has an Ascii encoding it is always validate Utf-8.
This was only an example, since I've never needed anything else than ISO-8859-1 (basic western) or just plain ascii for C. UTF-8 is perfectly fine, though. I'll see what I can do about this extension<=>encoding thing next weekend, I have my hands full right now.
Regards, Enrico
Thanks again...
Best, François