Darn, I did not realise it was a literal \uXXXX. Too much exposure to
viewers / editors that display the code for control characters they
can not show, I guess...

On 9/21/06, Marius Feraru <[EMAIL PROTECTED]> wrote:

> So, I'll just drop UCS (6 times longer

Three times for "\u00DF" vs. 0xC3 0x9F, but still :-)

>   var jutf = decodeURIComponent(escape(json));
>   if (jutf.length < json.length) {
>     json = jutf;
>   }

Wow. Very, very clever!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to rubyonrails-spinoffs@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs
-~----------~----~----~----~------~----~------~--~---

Reply via email to