After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 162044 - Changing encoding after loading
Changing encoding after loading
Status: RESOLVED WONTFIX
Product: gedit
Classification: Applications
Component: general
2.9.x
Other All
: Low enhancement
: ---
Assigned To: Gedit maintainers
gedit QA volunteers
Depends on:
Blocks:
 
 
Reported: 2004-12-23 01:20 UTC by Wei-Lun Chao
Modified: 2006-05-19 05:50 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description Wei-Lun Chao 2004-12-23 01:20:02 UTC
one function button for re-decoding the loaded file with other character set.
one function button for temparally auto-line-wrap switch.
Comment 1 Paolo Borelli 2005-12-17 10:37:11 UTC
> one function button for re-decoding the loaded file with other character set

this is fixed, since the only valid case when you want to reload with another
charset is if the autodetction failed. With gedit 2.13 in this case you get
offered the possibility of choosing another encoding.

> one function button for temparally auto-line-wrap switch

this is still there, but this request is traked in bug 119428, so I am marking
this as a duplicate.

*** This bug has been marked as a duplicate of 119428 ***
Comment 2 Wei-Lun Chao 2005-12-17 16:03:17 UTC
can it also handle the situation, where the autodetection is not "failed" but
just "wrong" with a temperary file located somewhere under /tmp ?
Comment 3 Paolo Borelli 2005-12-17 16:13:28 UTC
Sorry but I don't see the difference between 'failed' and 'wrong'... you open a
file in gedit (in /home, in /tmp, wherever else): if gedit picks the right
encoding the file is loaded and you can read it, otherwise it shows a message
along the lines of "Could not detect the encoding of the file, retry with
another encoding?" and a widget to manually choose the encoding with which to retry
Comment 4 Paolo Maggi 2005-12-17 17:31:15 UTC
There are files that can be opened with different encodings and so, as Wei-Lun
said, autodetection can be "wrong".

I don't see how we can solve this problem in an easy-way since encoding
conversion happens only at loading/saving time since gedit uses UTF-8 internally.

BTW, autodetection can be easily customized changing the
/apps/gedit-2/preferences/encodings/auto_detected

Actually the translators should customize that gconf key.
Comment 5 Wei-Lun Chao 2005-12-19 03:31:48 UTC
When I view an attached text file in webmail, gedit will open it somewhere in
/tmp. If this file contains some UTF-8 coded characters like U-FFFFF or U-FFFFE,
it would be detected as iso8859-15. if I save it to a file and open it manully
with UTF-8, the file can not be loaded, and I don't know on which position it failed.