Skip to content
Commit acc1da97 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

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
parent 09761cab
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment