I just encountered my first MultiByte problem with Rails <= 1.1
I guess I have been lucky.
I am just wondering if ActiveSupport::MultiByte fix this specific case.
render_text _("Rename selected %s to `%s' now.") % [params[:item_type], params['name']]
the two params['xx'] contains Japanese strings. and are displayed as
%u65D7%u9F13
but since I never had this problem before, I doubt the problem is actually the % operator. while it may be. I think it is important to note this is happening through Ajax. which might be causing the problem as well.
Would this work under rails 1.2 with ActiveSupport::MultiByte and is it possible to install ActiveSupport::MultiByte on rails 1.1.6 ?
thanks
--
http://blog.somekool.net/
Mathieu
On 10/2/06, Michael Koziarski <
[EMAIL PROTECTED]> wrote:
Hey guys,
We've been talking about the multi-byte patch and I think it's time to
get feedback from you guys on a possible way forward.
We can include ActiveSupport::Multibyte with rails 1.2, and update all
of the relevant helpers to use the String#chars proxy. This will mean
that none of the action view helpers will mangle multibyte strings.
Similarly, if any Strings are being mangled in ActiveRecord or
anywhere else, we'll accept patches to fix them.
But any iconv conversions in actionpack, or database encoding changes
will be left to plugin authors. Perhaps by the time that rails 2.0
comes around these plugins will have gained critical mass and
best-practises will have emerged, letting us add them to the core.
Similarly, encodings other than utf-8 can be provided by plugins.
Comments?
--
Cheers
Koz
--
gcc -O0 -DRUBY_EXPORT -rdynamic -Wl,-export-dynamic -L. main.o -lruby-static -ldl -lcrypt -lm -o ruby
Everyone is trying their hardest to do their job but management has set it up so that it's impossible.
Take the control over your money, track your expenses http://justbudget.com
Mathieu
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---
