Solution for API requests with UTF in NFD

I’ve got a problem with Workflow API calls from Safari on Swiss German Macos. The payload in body is in UTF NFD and the filenames it contains are not recognizable by the following functions.

Suggested solution:

Introduce switch in appsettings.config, that will enable enforcing UTF NFC of the API parameters for all Workflow APIs. Default behaviour is going to be disabled.

I’ve solved the problem by custom XSLT function providing the normalization when needed. The custom function is simple, it just uses String.Normalize.

public string NormalizeUtfString(string input)
{
    return string.IsNullOrEmpty(input) ? "" : input.Normalize();
}

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.