On Jun 15, 2006, at 2:19 AM, Charles O Nutter wrote:

I posted this to ruby-talk, but it occurred to me that you folks implementing Rails functionality probably have a thing or two to say about unicode support in Ruby. Therefore, I would love to hear your opinions. Adding native unicode support is only a matter of time in JRuby; its usefulness as a JVM-based language depends on it. However, we continue to wrestle with how best to support unicode without stepping on the Ruby community's toes in the process. Thoughts?

Julik has done a lot of pionering in that direction for Rails. His latest suggestion is to use a proxy class on string objects to perform unicode operations:

@some_unicode_string.u.length
@some_unicode_string.u.reverse

I tend to agree with this solution as it doesn't break any previous string operations and gives us an easy way to perform unicode aware operations.

Manfred
_______________________________________________
Rails-core mailing list
Rails-core@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-core

Reply via email to