Skip to content

Slugify a string doesn't seem to work on Unicode/Swedish letters #4623

@Saucy

Description

@Saucy
What version of Jekyll are you using (jekyll -v)?

v3.0.3 (using github-pages gem)

What operating system are you using?

Windows 7 Ultimate 64bit

What did you do?

Trying to slugify strings with Swedish letters in them. Not behaving like I would expect (to remove them or change the letters).
Example string: {{ 'kvalité, då, äta, öl' | slugify }}

What did you expect to see?

kvalit-d-ta-l
OR
kvalite-da-ata-ol

What did you see instead?

kvalité-då-äta-öl


My workaround would be to replace/remove the single letters before slugify'ing, but I'm wondering if there's anything else I can do.
Example replace: {{ 'kvalité, då, äta, öl' | replace: 'é', 'e' | replace: 'å', 'a' | replace: 'ä', 'a' | replace: 'ö', 'o' | slugify }}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions