Start Case function converts special characters

My App/Pages support link:
support-link

Describe the bug:

  • When using characters from non-English alphabet, Start Case converts the characters. For example Åäö becomes Aao. This creates limitations when using other languages, in this case Swedish.

Expected behavior:

  • Allow/implement the use of special characters

How to replicate:
Use the Start Case column and use special characters

Link to demo recording:

I agree this is a bug and I’ll let support know about that.

Meanwhile, it seems that this JS snippet can help.

let words = p1.split(" ");
let formattedText = "";

words.forEach(word => {
    formattedText += word.charAt(0).toUpperCase() + word.slice(1) + " ";
});

return(formattedText);

We use a split method to convert the original text into an array of words, then iterate over each word in the array to capitalize the first letter.

2 Likes

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