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
require "rubygems" | |
require "mp3info" | |
filename = "Haendel--Messiah - Evry valley--.mp3" | |
content = Mp3Info.open(filename).tag | |
puts content | |
puts "Händel" |
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
# coding: utf-8 | |
require "rubygems" | |
require "mp3info" | |
filename = "Haendel--Messiah - Evry valley--.mp3" | |
content = Mp3Info.open(filename).tag.artist | |
Iconv.iconv('iso-8859-1', 'utf-8', content) |