<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -6,4 +6,8 @@ class String
   def widont
     self.gsub(/([^\s])\s+([^\s]+)(\s*)$/, '\1&#160;\2\3')
   end
+  
+  def mb_chars
+    chars
+  end unless ''.respond_to?(:mb_chars)
 end
\ No newline at end of file</diff>
      <filename>lib/awesomeness/core_ext/string.rb</filename>
    </modified>
    <modified>
      <diff>@@ -9,12 +9,12 @@ module ActionView
       # though it will not be the exact length.
       def awesome_truncate(text, length = 30, truncate_string = &quot;&#8230;&quot;)
         return if text.nil?
-        l = length - truncate_string.chars.length
-        text.chars.length &gt; length ? text[/\A.{#{l}}\w*\;?/m][/.*[\w\;]/m] + truncate_string : text
+        l = length - truncate_string.mb_chars.length
+        text.mb_chars.length &gt; length ? text[/\A.{#{l}}\w*\;?/m][/.*[\w\;]/m] + truncate_string : text
       end
       
       def truncate_with_title(text, length = 30, truncate_string = &quot;&#8230;&quot;)
-        if text.chars.length &gt; length
+        if text.mb_chars.length &gt; length
           content_tag :span, truncate(text), :title =&gt; text
         else
           text</diff>
      <filename>lib/awesomeness/text_helper.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a58d9139de2850b840d788a206d9474383bfd016</id>
    </parent>
  </parents>
  <author>
    <name>Daniel Morrison</name>
    <email>daniel@collectiveidea.com</email>
  </author>
  <url>http://github.com/collectiveidea/awesomeness/commit/bace9a46454a1b0c1a1862b922a7f9d075b83248</url>
  <id>bace9a46454a1b0c1a1862b922a7f9d075b83248</id>
  <committed-date>2009-02-04T07:22:52-08:00</committed-date>
  <authored-date>2009-02-04T07:21:29-08:00</authored-date>
  <message>String#chars is deprecated. Using String#mb_chars, with a workaround for older versions.</message>
  <tree>3f9ca646ba1083d1bfb55d14093891ada18157c9</tree>
  <committer>
    <name>Daniel Morrison</name>
    <email>daniel@collectiveidea.com</email>
  </committer>
</commit>
