I substituted the Rails titlecase method for UnicodeUtils::titlecase, because of UTF-8 characters. I noticed the behavior is not exactly the same, even when no special chars are involved. For example:
Capitalized letter within word:
> "CompanyName".titlecase
=> "Company Name"
> UnicodeUtils.titlecase "CompanyName"
=> "Companyname"
Words than contain periods:
> "Company X.Y.Z.".titlecase
=> "Company X.Y.Z."
> UnicodeUtils.titlecase "Company X.Y.Z."
=> "Company X.y.z."
Is this intentional for some reason? It would be interesting if unicode_utils preserved the original behavior and dealt only with the special chars.
I substituted the Rails titlecase method for UnicodeUtils::titlecase, because of UTF-8 characters. I noticed the behavior is not exactly the same, even when no special chars are involved. For example:
Capitalized letter within word:
Words than contain periods:
Is this intentional for some reason? It would be interesting if
unicode_utilspreserved the original behavior and dealt only with the special chars.