Hi all,
This problem is making me nuts. I am using Iconv.conv to convert from
UTF-8 to ISO-8859-1:
Iconv.conv('iso-8859-1//IGNORE', 'utf-8', @data).html_safe
Both locally and on production the Ruby version is 1.9.3p0 (Rails
3.0.3), but it raises the following exception only on production:
A Iconv::IllegalSequence occurred in newsletters#show:
"e acompanham, na"...
app/controllers/newsletters_controller.rb:19:in `conv'
If I delete that part of the text, it raises again in other location.
This is really strange because the contents locally and on production
are exactly the same. Here is the text I am trying to convert (user
created data): https://gist.github.com/1664294. Any ideas?
Thanks!
Henrique
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.