October 09, 2006

Posted by John

Tagged multibyte and unicode

Older: Active Record Find Tip

Newer: Action Based Layouts

Rails Gets Unicode Handling

For those interested in or needing Unicode, changeset #5223 should interest you. It is the initial checkin of ActiveSupport::Multibyte. From the Multibyte API Docs:

ActiveSupport::Multibyte introduces Unicode handling for Ruby strings through the use of the String#chars accessor. The method works as a proxy for the standard Ruby string functions. This proxy will allow you to use the string as if it was a character array, the underlying implementation preserves the encoded byte string for maximum interoperability.

Multibyte even has a screencast for those interested.

0 Comments

Thoughts? Do Tell...


textile enabled, preview above, please be nice
use <pre><code class="ruby"></code></pre> for code blocks

About

Authored by John Nunemaker (Noo-neh-maker), a programmer who has fallen deeply in love with Ruby. Learn More.

Projects

Flipper
Release your software more often with fewer problems.
Flip your features.