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

Hook breaks non-ascii tags #62

Open
pztrn opened this issue Jan 17, 2025 · 0 comments
Open

Hook breaks non-ascii tags #62

pztrn opened this issue Jan 17, 2025 · 0 comments

Comments

@pztrn
Copy link

pztrn commented Jan 17, 2025

I have a task with cyrillics in tags:

task add +рабочее "Тестовая задача"

After that I start it:

task 1 start

And hook replaces +рабочее to \u0440\u0430\u0431\u043e\u0447\u0435\u0435:

2025-01-17 19:40:40 Tag 'рабочее' deleted.
                    Tag '\u0440\u0430\u0431\u043e\u0447\u0435\u0435' added.
                    Start set to '2025-01-17 19:40:40'.

It is due to json.dumps is missing parameter ensure_ascii = False. From docs:

ensure_ascii (bool) – If True (the default), the output is guaranteed to have all incoming non-ASCII characters escaped. If False, these characters will be outputted as-is.

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

1 participant