kalleth / mpukviewr

Daemon and Rails application for viewr.
Other
5 stars 0 forks source link

Forum posts containing £ break Sanitize gem and if not sanitized break db because of charset #2

Open kalleth opened 12 years ago

kalleth commented 12 years ago

Backtrace:

2012-05-04 21:22:21.805621 feedpoller(61554) [INFO] controller.rb:114: Error occurred: incompatible character encodings: ISO-8859-1 and UTF-8 2012-05-04 21:22:21.805786 feedpoller(61554) [INFO] controller.rb:115: Error occurred: /usr/local/lib/ruby/gems/1.9/gems/sanitize-2.0.3/lib/sanitize.rb:116:in []=' /usr/local/lib/ruby/gems/1.9/gems/sanitize-2.0.3/lib/sanitize.rb:116:inclean!' /usr/local/lib/ruby/gems/1.9/gems/sanitize-2.0.3/lib/sanitize.rb:93:in clean' /usr/local/lib/ruby/gems/1.9/gems/sanitize-2.0.3/lib/sanitize.rb:53:inclean' /data/mpuk/feedpoller/lib/pollers/forum_poller.rb:35:in title_from_post_with_link' /data/mpuk/feedpoller/lib/pollers/forum_poller.rb:24:inblock in poll' /data/mpuk/feedpoller/lib/pollers/forum_poller.rb:19:in each' /data/mpuk/feedpoller/lib/pollers/forum_poller.rb:19:inpoll' /data/mpuk/feedpoller/lib/controller.rb:110:in block in poll' /data/mpuk/feedpoller/lib/controller.rb:109:ineach' /data/mpuk/feedpoller/lib/controller.rb:109:in poll' /data/mpuk/feedpoller/libexec/feedpoller-daemon.rb:26:inblock in <top (required)>' /data/mpuk/feedpoller/libexec/feedpoller-daemon.rb:25:in loop' /data/mpuk/feedpoller/libexec/feedpoller-daemon.rb:25:in<top (required)>' /usr/local/lib/ruby/site_ruby/1.9/rubygems/custom_require.rb:36:in require' /usr/local/lib/ruby/site_ruby/1.9/rubygems/custom_require.rb:36:inrequire' /usr/local/lib/ruby/gems/1.9/gems/daemon-kit-0.1.8.2/lib/daemon_kit/application.rb:49:in start' /usr/local/lib/ruby/gems/1.9/gems/daemon-kit-0.1.8.2/lib/daemon_kit/application.rb:24:inexec' /data/mpuk/feedpoller/bin/feedpoller:8:in `

'