Fileupload => AS Partial failing with incompatible character encodings: ASCII-8BIT and UTF-8

35 views
Skip to first unread message

guillaume

unread,
Oct 5, 2011, 8:06:39 AM10/5/11
to actives...@googlegroups.com
Hello,

While doing a file upload with a file containing non ASCII Characters, the upload is going fine, but AS fail on loading the final partial.
After that if i reload the page everything works fine.

Here is the error message :

Completed 500 Internal Server Error in 1146ms

ActionView::Template::Error (incompatible character encodings: ASCII-8BIT and UTF-8):
    9: 
    10: <tr class="record <%= tr_class %>" id="<%= element_row_id(:action => :list, :id => record.id) %>" data-refresh="<%= url_for(params_for(:action => :row, :id => record.id, :_method => :get, :escape => false)).html_safe %>" data-as_load="tr">
    11:   <%= render :partial => 'list_record_columns', :locals => {:record => record, :columns => columns} %>
    12:   <%= render :partial => 'list_actions', :locals => {:record => record, :url_options => url_options, :action_links => action_links} unless action_links.empty? %>
    13:   <%= render_nested_view(action_links, url_options, record) unless @nested_auto_open.nil? %>
    14: </tr>
  activesupport (3.0.9) lib/active_support/core_ext/string/output_safety.rb:82:in `concat'
  activesupport (3.0.9) lib/active_support/core_ext/string/output_safety.rb:82:in `concat'
  actionpack (3.0.9) lib/action_view/template/handlers/erb.rb:14:in `<<'
  /Users/guillaume/.rvm/gems/ruby-1.9.2-p290/bundler/g

BTW i did put every UTF8 stuff in my app (default_encoding, external, internal etc..), seems to really be just an AS bug in that case.

Thanks for helping.

Sergio Cambra .:: entreCables S.L. ::.

unread,
Oct 5, 2011, 8:40:11 AM10/5/11
to actives...@googlegroups.com
On Miércoles, 5 de Octubre de 2011 14:06:39 guillaume escribió:
> Hello,
>
> While doing a file upload with a file containing non ASCII Characters, the
> upload is going fine, but AS fail on loading the final partial.
> After that if i reload the page everything works fine.

What are you using for file upload?

--
Sergio Cambra .:: entreCables S.L. ::.
Mariana Pineda 23, 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) ser...@entrecables.com

guillaume

unread,
Oct 5, 2011, 10:14:34 AM10/5/11
to actives...@googlegroups.com
Paperclip.

thx.

Sergio Cambra .:: entreCables S.L. ::.

unread,
Oct 19, 2011, 9:38:32 AM10/19/11
to actives...@googlegroups.com
On Miércoles, 5 de Octubre de 2011 14:06:39 guillaume escribió:

Please, disable backtrace silencers and send a full backtrace

Differenthink

unread,
Oct 21, 2011, 5:42:48 AM10/21/11
to ActiveScaffold : Ruby on Rails plugin
Ok nevermind it now seems to work... sorry !

On 19 oct, 15:38, "Sergio Cambra .:: entreCables S.L. ::."
Reply all
Reply to author
Forward
0 new messages