On Mar 31, 5:04 pm, Nanyang Zhan <rails-mailing-l...@andreas-s.net>
wrote:
>
> when:>> "中文".unpack("U*")
>
> => [20013, 25991]
>
> So, it is a way turning [20013, 25991] to '%D6%D0%CE%C4', right?
>
Well 20013 is 0x4E2D which is the utf16 for the first of your
characters. Looking back at  what you write I'd no idea where D6D0 is
coming from - that's a completely different character according to the
unicode character palette I have. Not sure what you javascript has
been doing.

Fred
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to