Skip to content
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

no auto-reload opened file view if change it's encoding #1529

Closed
andysendo opened this issue Jul 3, 2017 · 7 comments
Closed

no auto-reload opened file view if change it's encoding #1529

andysendo opened this issue Jul 3, 2017 · 7 comments

Comments

@andysendo
Copy link

Hi, i am a newly geany user.

when i open a plain/txt file that is gbk encoding from file-manager, always show measy characters due to geany default using utf-8.

if i change encoding by the menu 'doc - encodeing - lang ...', geany do not auto-reload the file with the changed encoding. kate editor can do that way.

i know geany how to correctly open non-utf8 txt file, but auto reload when change encoding makes user much simpler. i hope geany have the function.

Regards.

@vfaronov
Copy link
Contributor

vfaronov commented Jul 3, 2017

Instead of DocumentSet Encoding, use File → Reload As.

@andysendo
Copy link
Author

yes, manual reload works. but auto reload is better.

@elextr
Copy link
Member

elextr commented Jul 3, 2017

@andysendo document->set encoding sets the encoding to save the document in, if it reloaded then there would be no way to change the encoding of the document as noted in the manual.

@andysendo
Copy link
Author

"if it reloaded then there would be no way to change the encoding of the document as noted in the manual."

not understand what's that mean.

as my experience, open non-utf8 plain txt file, change encoding, editor auto reload, it's simple, naturally actions.

if i wan to change the orig file encoding, such as gbk->utf8 whaterver, i just create new empty file with utf8 then crtl+c/v, or by enconv/iconv tool.

@elextr
Copy link
Member

elextr commented Jul 3, 2017

@andysendo clearly the people who made the Geany UI have a different usage and workflow than yours.

It was worth them adding the capability of modifying the encoding inside Geany and mentioning it in the manual.

@vfaronov indicated the intended way to use Geany to reload an already open file with different encoding, and as that also sets the document encoding it makes no difference in terms of UI actions, just "reload as" instead of "set encoding". Neither is "better", they are just different ways of achieving the same thing.

@andysendo
Copy link
Author

ok, thanks for help, guys.

@elextr
Copy link
Member

elextr commented Apr 14, 2019

Closed works as intended

@elextr elextr closed this as completed Apr 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants