← Reference

string-methods

Ruby string-methods reference.

String#unicode_normalize

Normalize Unicode strings to a consistent form (NFC, NFD, NFKC, NFKD) for reliable comparison and storage in Ruby.

str.unicode_normalize(form=:nfc)