Skip to content

LinkHelper ignores allowOnlyAscii for German and Scandinavian characters #942

Closed

Description

@skrysm

The pull request #911 introduced a bug/regression where LinkHelper.Urilize() "escapes" German Umlauts (like ä, Ö, or ?) even when allowOnlyAscii is set to false.

This regression was introduced with version 0.44.0.

In version 0.43.0 and earlier:

LinkHelper.Urilize("zeilenumbrüche", allowOnlyAscii: false) // -> zeilenumbrüche

In version 0.44.0 and later (up to the current version 1.3.0):

LinkHelper.Urilize("zeilenumbrüche", allowOnlyAscii: false) // -> zeilenumbrueche

The problem is here:

if (IsSpecialScandinavianOrGermanChar(c))

The condition ignores the allowOnlyAscii parameter.

Activity

  1. xoofx commented on Jun 17, 2026

    @xoofx
    Owner

    Fixed via 5006184

  2. skrysm commented on Jun 18, 2026

    @skrysm
    Author

    Wow - that was fast. Thanks a lot. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions