b4n left a comment (geany/geany#2910)

> @b4n What open as option? At least on mac there is no such a thing.

Maybe the Open dialog uses the native ones which won't have the option.  You 
can disable this in the prefs (or maybe not for the macos builds?).  Or use 
*File → Reload As* once it's open.

> If I open the log file that contains non-unicode content geany will start 
> rendering it correctly and once it reaches that character it will change 
> buffer to unicode gibberish. Basically that file is unopenable

Is there any chance to see an offending file?

> and no matter what settings I change or option in Set Encoding, nothing will 
> display it correctly.

Ah, this might explain some things 🙂  We've got 2 options about encoding:
1. The encoding we want to write to disk.  This is in *Document → Set 
Encoding*.  This does *not* change the buffer contents (e.g; what you see on 
screen); all it does is that next save will try to convert to that encoding.  
Changing this is useful if the file content displays correctly, but you'd like 
to change the on-disk representation of that data.
2. The encoding we want to use to load the file, and transform the data to 
something that can be displayed.  This usually match the encoding we want to 
save to, but you can force Geany to try a specific encoding for loading the 
file instead of whatever it would use by default.  This can be either done in 
the Open dialog if you have the option, or through *File → Reload As*.  The 
encoding used for saving will automatically match, no need to worry.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2910#issuecomment-4117558944
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/issues/2910/[email protected]>

Reply via email to