Skip to content

Instantly share code, notes, and snippets.

@GalenkoEugene
Last active March 12, 2018 13:32
Show Gist options
  • Save GalenkoEugene/01496449420646aaedaecd35f20b0896 to your computer and use it in GitHub Desktop.
Save GalenkoEugene/01496449420646aaedaecd35f20b0896 to your computer and use it in GitHub Desktop.
Rails Error: “\xE4” followed by “l” on UTF-8
Dir['*/**/*.js', '*/**/*.css'].each do |f|
File.write f, File.read(f).force_encoding('ISO-8859-1').encode('UTF-8')
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment