ctolkien / Slugify

Simple Slug / Clean URL generator helper for Microsoft .NET framework / .NET Standard.
MIT License
96 stars 13 forks source link

Can not handle umlaute #38

Closed mkalinski93 closed 2 years ago

mkalinski93 commented 2 years ago

I am using version 3.0.0

the text "Zwischenboden für Arbeitstische ATK - 600 Tief" becomes "zwischenboden-fur-arbeitstische-atk-600-tief"

Most often, German umlaute are translated with two characters. For example "ö" becomes "oe"

I´ve manualy tried to set umlaute, but not working either.

This is my recent configuration

SlugHelperConfiguration slugHelperConfiguration = new SlugHelperConfiguration();
            slugHelperConfiguration.ForceLowerCase = true;
            slugHelperConfiguration.CollapseDashes = true;
            slugHelperConfiguration.TrimWhitespace = true;
            slugHelperConfiguration.CollapseWhiteSpace = true;
            services.AddSingleton(new SlugHelper(slugHelperConfiguration));