A bit more about that from: http://dev.rubyonrails.org/ticket/2151:
Ajax.InPlaceEditor calls Form.serialize() from Prototype internally to
serialize the dynamically created form. This function uses the
JavaScript? function encodeURIComponent() to encode URI components,
which works by encoding the provided string (in this case the value of
the text field) with UTF-8 escape sequences.
Because JavaScript? provides no way to encode to arbitrary encodings,
using UTF-8 (which is the de facto standard for multi-language pages) is
the only "easy" way to go here. If you have to use ISO-8859-1, you can
manually change prototype.js to use escape() instead of
encodeURIComponent().
See http://xkr.us/articles/javascript/encode-compare/ for some
additional information.
Janko Mivšek wrote:
Gregory, UTF-8 encoding only is stated in Scriptaculous docs about
in-place editor:
http://wiki.script.aculo.us/scriptaculous/revision/Ajax.InPlaceEditor?rev=16
"Character encoding
The form data is sent encoded in UTF-8 regardless of the page encoding.
This is as of the prototype function Form.serialize. "
Best regards
Janko
Gregory Hill wrote:
Prototype uses UTF-8 encoding only. I would change your page charset
to
UTF-8 from ISO-8859, this will definitively the best solution and once
for ever (UTF-8, that is Unicode covers all characters on our planet!)
It's not an option for me at this point. Your server code needs to be
set up to use UTF-8 for everything to work correctly. My database and
server code is all ISO-8859-1, and changing it is not trivial (although
that is the ultimate goal). I've not seen anything in Prototype that
specifically makes it UTF-8 only. I believe javascript has the ability
to use various encodings.
Greg
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
--
Janko Mivšek
Svetovalec za informatiko
EraNova d.o.o.
Ljubljana, Slovenija
www.eranova.si
tel: 01 514 22 55
faks: 01 514 22 56
gsm: 031 674 565
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs