Correctly shorten unicode text.
Previously it may have happened, that multy-byte characters got breaken from the middle, resulting in invalid characters. Now we're using the unicode support in regexes to count chars correctly. A great resource for UTF-8 support in Ruby 1.8.7 is found here: http://blog.grayproductions.net/articles/bytes_and_characters_in_ruby_18
Loading
Please register or sign in to comment