Hi Arnaud,
First of all, I use rails in Windows environment… (I dont know whether
it makes a difference…)
What I suggest you, remove all the “hack” lines from core.rb, and just
make an ajax call from your app… Then, look at your “development.log”
file…
You must see the error trace at the very end of the log file…
This is the way I found that rails makes a call to core.rb…
To help you, here I copy my development.log trace when an ajax call is
made without the “hack”…
You can see the “malformed UTF-8 char…” error, and the call to
“unpack” in core.rb file in the trace.
When I do the “hack”, all these errors went away, it renders the .rjs
files correctly and updates the iso-8859-9 database with correct Turkish
chars.
Also, after you did what I said to you above (remove hack, make an ajax
call, look at log file), you can send me your error trace in
development.log file, and we can look for what’s happening in your case
together…
Here is my error trace :
ActionView::TemplateError (malformed UTF-8 character) on line #6 of
app/views/personel/edit.rjs:
3:
4: if @successful
5: page.hide element_row_id(@view_options)
6: page.insert_html :bottom, scaffold_tbody_id(@options), :partial =>
‘new_edit’
7: page << “new TableRow.MoveAfter(’#{element_row_id(@view_options)}’,
‘#{element_row_id(@options)}’);”
8: page.show element_row_id(@options)
9: page << “setupAllTabs()”
D:/EErisken/Downloads/ruby/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/json/encoders/core.rb:36:in
unpack' D:/EErisken/Downloads/ruby/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/json/encoders/core.rb:36 D:/EErisken/Downloads/ruby/InstantRails/ruby/lib/ruby/1.8/jcode.rb:212:in
each_char’
D:/EErisken/Downloads/ruby/InstantRails/ruby/lib/ruby/1.8/jcode.rb:211:in
each_char' D:/EErisken/Downloads/ruby/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/json/encoders/core.rb:27 D:/EErisken/Downloads/ruby/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/core_ext/object/misc.rb:23:in
returning’
D:/EErisken/Downloads/ruby/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/json/encoders/core.rb:26
Bu e-posta mesaji, mesajin alici kisminda belirtilmis olan kullanici
icindir. Mesajin alicisi siz degilseniz dogrudan veya dolayli olarak
mesaji kullanmayiniz, acmayiniz, dagitmayiniz, yazicidan dokumunu
almayiniz veya herhangi bir kismini kopyalamayiniz. Yanlislikla bu mesaj
size ulasmissa lutfen, siliniz ve tum kopyalarini yok ederek mesaji
gonderene acilen haber veriniz. Bu mesaj icerisinde belirtilenler sadece
gondericinin kisisel gorusleridir. Bu gorusler Sermaye Piyasasi Kurulu’
nun (SPK) goruslerini yansitmadigi gibi, SPK’ yi baglayici da degildir.
Bu mesajin icerisinde ya da eklerinde yer alan bilgilerin dogrulugu,
butunlugu ve guncelligi SPK tarafindan garanti edilmemektedir ve bilinen
viruslere karsi kontrolleri yapilmis olarak yollanan mesajin sitenizde
yaratabilecegi zararlardan SPK sorumlu tutulamaz.
This email is intended solely for the use of the individual or entity to
whom it is adressed. If you are not the intended addressee of this
message, you should not use, open, disseminate, distrubute, print or
copy this e-mail. If you have received this email in error, please
delete it from your system and notify the sender immediately. The
Capital Markets Board of Turkey (CMB) does not accept any legal
responsibility whatsoever for the contents of this message. Any opinions
contained in this message are those of the author and are not given or
endorsed by the CMB. The CMB does not warrant the accuracy, integrity
and currency of the information transmitted with this message. This
message has been detected for all known computer viruses thence CMB is
not liable for the occurrence of any system corruption caused by this
message.