Title prettify does not correctly lowercase non English characters when removing ALL CAPS


(Admir Hodzic) #1

Why title prettify do not lowering non english characters to lower letters ?

Here is sample .
When user create topic with title ALL CAPS ON

Discourse change title to pretty but it avoids non english characters

It leaves non english characters Uppercase which make topic title more ugly then it was.


(Jeff Atwood) #2

I guess the lowercase() function in Ruby is not Unicode aware?


(Sam Saffron) #3

most certainly not, we would need a custom mapper here.


(Rafael dos Santos Silva) #4

Since this is a pretty annoying in portuguese (we use Ç a lot, and never at the start of a word) this is my go on this bug.

Still needs tests and specs!


(Jeff Atwood) #5