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 match on UTF-8 chars #27

Open
fredleger opened this issue Dec 31, 2022 · 3 comments
Open

no match on UTF-8 chars #27

fredleger opened this issue Dec 31, 2022 · 3 comments

Comments

@fredleger
Copy link

Tried to rename some french files with UTF-8 chars in it (û) and it seems it does not even match.

image

@shenwei356
Copy link
Owner

It works for me. Is your terminal UTF8?

$ ls
2022-août_alan.pdf

$ brename -il -p '^.*août.*$'
[INFO] main options:
[INFO]   ignore case: true
[INFO]   search pattern: (?i)^.*août.*$
[INFO]      skip filters: ^\.
[INFO]   include filters: .
[INFO]   search paths: ./
[INFO] 
2022-août_alan.pdf

@fredleger
Copy link
Author

it seems that yes

Screen Shot 2023-01-04 at 3 39 53 PM

@fredleger
Copy link
Author

fredleger commented Jan 4, 2023

Edit: with a file created by me it's working as expected (i guess it's how you tested also)

Screen Shot 2023-01-04 at 3 43 51 PM

So the point must be on how and where the file was created. will try to find an exemple file to reproduce

one thing i could think about it's that the file wasn't created by me but downloaded. maybe the encoding of the file name is not utf8 i must check with a file created by me

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