Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Tags starting with upper case special characters are not imported properly #11179

Closed
marph91 opened this issue Oct 5, 2024 · 4 comments · Fixed by #11513
Closed

Tags starting with upper case special characters are not imported properly #11179

marph91 opened this issue Oct 5, 2024 · 4 comments · Fixed by #11513
Assignees
Labels
bug It's a bug desktop All desktop platforms high High priority issues import Related to importing files such as ENEX, JEX, etc.

Comments

@marph91
Copy link
Contributor

marph91 commented Oct 5, 2024

Operating system

Linux

Joplin version

3.1.17

Desktop version info

No response

Current behaviour

Unzip and import the following folder with the "MD + Front Matter (Directory)" import. It contains two empty notes with tag Ökonomie.

example_tag_umlaut.zip

Result: The tag ökonomie is created and assigned to the first note. The second note gets imported, but without tag. Instead, there is an error message and the import stops:

grafik

References:

Expected behaviour

Import both notes including tags.

Logs

No response

@marph91 marph91 added the bug It's a bug label Oct 5, 2024
marph91 added a commit to marph91/jimmy that referenced this issue Oct 5, 2024
@laurent22 laurent22 added desktop All desktop platforms high High priority issues import Related to importing files such as ENEX, JEX, etc. labels Oct 5, 2024
@JackGruber
Copy link
Contributor

Possible the same problem with the SQLite function LOWER as in #5102

@richardsprague
Copy link

when I import the enclosed file with a single tag, joplin explodes the tag into multiple tags of one letter each. Oddly, it imports correctly when the imported note contains more than one tag.
Notes 241019 Saturday.md

@marph91
Copy link
Contributor Author

marph91 commented Oct 19, 2024

when I import the enclosed file with a single tag, joplin explodes the tag into multiple tags of one letter each. Oddly, it imports correctly when the imported note contains more than one tag.

The tags field expects a list. I guess if you specify a single tag only, it's handled as a list of characters (each a separate tag). Imo. this is expected behavior and not related to the original issue.

NB: I didn't try, but

tags: [notes]

or

tags:
  - notes

should work in your case.

@pedr
Copy link
Collaborator

pedr commented Dec 14, 2024

It seems like this is limitation of sqlite, we can't have a "case insensitive" search for all Unicode characters without adding a extension to SQLite.

I found that this extension could be used:
https://github.com/nalgeon/sqlean/blob/main/docs/text.md

In the image text_lower is the function added by the extension.
image

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug It's a bug desktop All desktop platforms high High priority issues import Related to importing files such as ENEX, JEX, etc.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants