search for: normalize_kc

Displaying 2 results from an estimated 2 matches for "normalize_kc".

2006 Mar 21
2
How do I get substring of utf-8 string?
I''m trying to get substring from a utf-8 encoded string. (say, first 50 characters of the string) String#[0..49] would give me the first 50 bytes not 50 characters.. I know there is jcode library, but it only let you count number of characters in utf-8 string. unicode gem doesn''t seem to help much. unicode_hacks gem seem to solve the problem, but it also seems to
2005 Aug 13
9
Multilingual Rails v0.6
...nto the String class: String#compose(compat=false) # Unicode::compose(str) or Unicode::compose_compat(str) String#decompose(compat=false) # Unicode::decompose(str) or Unicode::decompose_compat(str) String#normalize(compat=false) # Unicode::normalize_C(str) or Unicode::normalize_KC(str) Unicode::normalize_D/KD are the same as str.decompose.compose (=D) and str.decompose(true).compose (=KD). All methods above have method!-equivalents for in-place manipulation. * Multilingual Rails no longer use ruby-locale! You may uninstall it. :) Instead we use precal...