Skip to content

Instantly share code, notes, and snippets.

@fvztdk
Created September 16, 2015 14:54
Show Gist options
  • Save fvztdk/c0fb4aa249ad068f9092 to your computer and use it in GitHub Desktop.
Save fvztdk/c0fb4aa249ad068f9092 to your computer and use it in GitHub Desktop.
Fix Encoding Error Rails -> log writing failed. "\xC3" from ASCII-8BIT to UTF-8`
Nokogiri::XML('string with problem').serialize(:encoding => 'UTF-8')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment