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

feature request: change confirmation about editing UTF-8 files #526

Open
CameronD73 opened this issue Dec 11, 2024 · 1 comment
Open

feature request: change confirmation about editing UTF-8 files #526

CameronD73 opened this issue Dec 11, 2024 · 1 comment

Comments

@CameronD73
Copy link

I am doing some search/replace on a bunch of html files that I know are utf-8, without a BOM.
Every time I click "replace" it wants yet another confirmation, which is tedious, especially when neither the folder nor the file extension has changed.

Ideally the confirmation should only appear only once - until I do something to potentially change the target files (folder or filename match)

Having the alert can be a useful reminder, so if the first suggestion is not easy, then a setting to disable it for the duration of the program instance would be a reasonable alternative.

A related issue is that grepwin seems to recognise when I paste a utf-8 character into the "replace" box and, if I do not have "treat files as UTF8" ticked then it will automatically convert to ANSI to write to the file. It might be better to have the alert at this point - something like "you have provided a UTF8 character and it will be converted to ..." The example character I was using was "Vulgar Fraction One Half" (U+00bd)
I am guessing you always treat files with a BOM as the indicated UTF encoding, so it only applies to files without a BOM.

If I take a character not in the latin-1 set, such as five-eighths, then it silently converts it to "?" to write to a file assumed not UTF-x. This could definitely do with a warning.

@lifenjoiner
Copy link
Collaborator

lifenjoiner commented Dec 12, 2024

If your UTF8 files without BOM has only ASCII chars, they are the same as ANSI files. Option "Treat files as UTF8" would help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants