Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

How to force Geany to open unknown files as plain text/ASCII? #3686

Closed
that-ben opened this issue Nov 13, 2023 · 1 comment
Closed

How to force Geany to open unknown files as plain text/ASCII? #3686

that-ben opened this issue Nov 13, 2023 · 1 comment

Comments

@that-ben
Copy link

Is there a way to force Geany to open ANY file it doesn't recognize as plain text or ASCII? I don't care for syntax on some of the files, I just want to see the raw contents. NotePad++ didn't have any issue in opening whatever and displaying it (even binary files) so can Geany do that?

@elextr
Copy link
Member

elextr commented Nov 13, 2023

No, Geany cannot open files with a NUL byte in them, it is written in C where NUL means end of string. Notepad++ is written in C++ which can handle strings with NUL in them. Also Geany assumes that the buffer contents are UTF-8, so as a file is opened its encoding is converted to UTF-8. So if it can't find an encoding that works it won't open the file.

@geany geany locked and limited conversation to collaborators Nov 13, 2023
@elextr elextr converted this issue into discussion #3687 Nov 13, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants