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

startswith doesn't work with accents #74

Closed
misterio2051 opened this issue Apr 11, 2020 · 2 comments
Closed

startswith doesn't work with accents #74

misterio2051 opened this issue Apr 11, 2020 · 2 comments

Comments

@misterio2051
Copy link

misterio2051 commented Apr 11, 2020

As the title says. I have the following rule:

# Cálculo PDF
rules:
  - folders: ~/Google Drive/
    subfolders: false
    filters:
      - extension:
         - pdf
      - filename:
          startswith: Cálculo 
    actions:
      - move: "~/Google Drive/Escuela/12vo/Cálculo Integral/Periodo #6/PDF's/"

I've tried adding quotations to the startswith argument but it still doesn't work.

@tfeldmann
Copy link
Owner

I just created a unit test but could not reproduce this.
My guess is that this is related to #40 and the accents are encoded differently. You could try to copy the á from your filename directly into the script, but this is just a workaround.

@tfeldmann
Copy link
Owner

Closing this as duplicate of #40.

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

No branches or pull requests

2 participants