Skip to content

Hook breaks non-ascii tags #62

@pztrn

Description

@pztrn

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions