From b3cca13acdd48539351e0cfe1cba9b00995e7cb3 Mon Sep 17 00:00:00 2001 From: Jianbo Su Date: Fri, 31 May 2013 14:20:52 +0800 Subject: [PATCH] change output encoding from ISO-8859-1 to UTF-8 while handling video with non English meta(say like Chinese --- lib/ffmpeg/transcoder.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ffmpeg/transcoder.rb b/lib/ffmpeg/transcoder.rb index 1d27f899..0d6757c8 100644 --- a/lib/ffmpeg/transcoder.rb +++ b/lib/ffmpeg/transcoder.rb @@ -121,7 +121,7 @@ def apply_transcoder_options def fix_encoding(output) output[/test/] rescue ArgumentError - output.force_encoding("ISO-8859-1") + output.force_encoding("UTF-8") end end end