[Rails-spinoffs] Re: How to deal with Unicode chars inside X-JSON HTTP header (besides UCS)?
I am sorry, I did not understand you correctly. And I also have to revise my understanding of the matter. RFC2616, Section 2.2 says: The TEXT rule is only used for descriptive field contents and values that are not intended to be interpreted by the message parser. Words of *TEXT MAY contain characters from character sets other than ISO- 8859-1 [22] only when encoded according to the rules of RFC 2047 [14]. TEXT = any OCTET except CTLs, but including LWS What seems to happen is that Firefox assumes the X-JSON header to contain a ISO-8859-1 encoded value and performs a conversion ISO-8859-1 - UTF8. So multi-byte codepoint don't work. I tried quoted printable but had no luck, but it might be just me. And there is also the question how the various browsers handle this. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[Rails-spinoffs] Re: Drop Zone Indicator with Scriptaculous
On 9/7/06, Peter Michaux [EMAIL PROTECTED] wrote: On 9/7/06, Thomas Fuchs [EMAIL PROTECTED] wrote: How about sharing the headaches and we'll look into it? The heavy use of navigator.userAgent is my biggest concern with maintainance problems. I avoid navigator.userAgent like the plague. Using it usually means revisting code over and over again as different browsers spoof as other browsers. It has been two weeks since I posted this concern and DHH's blog article today inspired me to be persistant with what is good criticism. I'm curious why there is a lack of interest in removing navigator.userAgent from Scriptaculous. Is it because Scriptaculous developers do not understand how unreliable this technique is? Is it because working on some browsers for the time being is good enough? This is the low hanging fruit to make Scriptaculous much better as browser sniffing is the biggest no-no in creating good JavaScript. http://jibbering.com/faq/faq_notes/not_browser_detect.html http://www.quirksmode.org/js/support.html Peter --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[Rails-spinoffs] prototype.js: Safari issues with 1.5.0 rc1
I'm using scriptaculous, which requires prototype 1.5.0, and comes with 1.5.0 rc1. However, on page load and when any form is submitted, Safari is getting caught at line 1320, with ReferenceError: Can't find variable: HTMLFormElement. Tested with Safari 2.0.4 and latest WebKit nightly (r16463). Perhaps there is a newer rc? I can't seem to find anything at all in the repository. Robin Daugherty Motorola http://developer.motorola.com --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[Rails-spinoffs] Re: How to deal with Unicode chars inside X-JSON HTTP header (besides UCS)?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Your tests show that IE6 correctly retrieves a UTF-8 encoded header? Then it should wrongly decode the ISO-8859-1 equivalent value in the X-JSON-UCS header as either C3 9F or DF can be ß, but not both, no? When I said UCS encoded, I really meant that :)) Remember this scrap from Gecko debug: - -1210520688[9c18b48]: http response [ - -1210520688[9c18b48]: HTTP/1.1 200 OK ... - -1210520688[9c18b48]: X-JSON-UCS: {a:\u00df,_:,b:\u00e7} - -1210520688[9c18b48]: X-JSON: {a:ß,_:,b:ç} ... - -1210520688[9c18b48]: ] These are raw headers, it's exactly what it received. Sending the ß character X-JSON (utf-8 encoded value) = C3 9F X-JSON-UCS (equals ISO-8859-1 in this case) = DF ^ no, it's 6 (six) bytes: \, u, 0, 0, d and f. Following your thoughts, looks like IE doesn't assume data is ISO-8859-1 (or anything else), it just passed on the raw header to JS. - -- Marius Feraru -BEGIN PGP SIGNATURE- iD8DBQFFEcTFtZHp/AYZiNkRAvvNAJ91DBqJpn80XdiSZk+jui3ZeeE2ZACeM2qn IXo+AiA/+0nunMc/Zy0b6pY= =voBd -END PGP SIGNATURE- --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[Rails-spinoffs] Re: Drop Zone Indicator with Scriptaculous
Anything new on this topic? I am trying to have same behaviour. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---