On 23 Dec 2005, at 01:55 , Jamis Buck wrote:
On Dec 22, 2005, at 3:47 PM, Julian 'Julik' Tarkhanov wrote:
I am just upset because it's so broken and I seem to be the only
one whining and asking questions. Maybe I am asking them wrong, I
don't know. Or I seem to be the only Rails user needing to use
both an ß and a Ш in a single string, while everyone else is
happily building this new Web 2.0 (which as it turns out has
problems accepting my first and last name).
Julik,
Allow me, as a core team member, to say, "the core team cares about
this issue." I hope that assuages some of your pain.
Now, as a core team member, allow me to say, "the core team has no
experience with i18n". Allow me also to say, "the core team has no
pressing needs for extensive i18n in their applications." And
lastly, allow me to say (as has been said multiple times), "patches
are always welcome."
Just to try clarifying the issue; Julik is _not_ whining about
_extensive_ i18n at all, he is whining because Rails breaks in all
kinds of subtle ways when you enter Unicode data that contains
characters beyond the 'Basic Latin' plane.
Simply put, a _character_ is no longer _one byte long_ when you get
beyond the characters you can see printed on your keyboard. Even
simple punctuation like these “double quotation marks” take up
_two bytes_ each, and stuff like ⾦ is _three bytes_ in UTF-8.
Because most string handling stuff in Ruby treats each character as
one byte, there a lot of places in Rails right now where _every_
character is assumed to be _one byte_ in length; which simply is not
the case.
Everyone interested might like to read the following articles on how
Unicode and the UTF-8 encoding works:
http://www.tbray.org/ongoing/When/200x/2003/04/06/Unicode
http://www.tbray.org/ongoing/When/200x/2003/04/26/UTF
http://www.joelonsoftware.com/articles/Unicode.html
Kind regards,
Thijs van der Vossen
--
Fingertips - http://www.fngtps.com
+31 (0)6 24204845
[EMAIL PROTECTED]
_______________________________________________
Rails-core mailing list
Rails-core@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-core