Last active
December 17, 2015 14:39
-
-
Save ichi/5626391 to your computer and use it in GitHub Desktop.
mac濁点問題対策。itunesで吐き出したm3u8なんかにやってやる。(そのままだとandroidなんかで問題箇所がとばされちゃうから)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
Dir[*ARGV].each do |f| | |
tmp = "#{File.dirname f}/_#{File.basename f}" | |
`iconv -c -f UTF-8-MAC -t UTF-8 #{f} > #{tmp}` | |
File.rename tmp, f | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment