Romanians and diacritics

Working on an app that is heavily depended on diacritics is kind of strange. Especially with libraries not always supporting diacritics.

Realm

I’m perfectly aware it may not be a common request and I don’t blame the guys for not implementing it by default. There are other more pressing issues (array of int & string, please!). Thus, I had to do a little extra work to make it going.

Implemented a special field for diacritics stripped strings. Thus in the field right, i’m gonna have: “Șarpele mă-tii” and in right_strip: “Sarpele ma-tii”.

It kind of doubles the size of my realm files, but hoping this will not cause an issue.

When getting the question, i’m parsing the right parameter through this method and saving it into right_strip.

The funny thing is that at the beginning the string would look like: “S?arpele ma?-tii”, no idea why and had to strip the question mark as well.




Leave a Comment

Blog

Recent posts