agrep icon indicating copy to clipboard operation
agrep copied to clipboard

utf-8 support

Open trebitzki opened this issue 7 years ago • 4 comments

Is it possible to search in utf-8 files? I have some foreign names in my file and the -ia option doesn't return those names. I also tried the codepages 437, 850 and 8859 with the -CP option. Is there any workaround?

trebitzki avatar Feb 07 '18 21:02 trebitzki

I am very sorry, but this appears to be not possible, as far as I understand the algorithms (agrep uses a plurality of algorithms).

Wikinaut avatar Feb 07 '18 21:02 Wikinaut

Pls. keep in mind, that agrep is very very old.

Wikinaut avatar Feb 07 '18 21:02 Wikinaut

@trebitzki perhaps one of the agrep-alternatives (see https://github.com/Wikinaut/agrep/blob/master/README.md ) is able to search utf-8. I never had the time to check them all thoroughly.

if you find something: please report here!

Wikinaut avatar Feb 07 '18 21:02 Wikinaut

See https://github.com/Genivia/ugrep.

polluks avatar Aug 19 '21 11:08 polluks