Skip to content

Instantly share code, notes, and snippets.

# 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)
require "rubygems"
require "mp3info"
filename = "Haendel--Messiah - Evry valley--.mp3"
content = Mp3Info.open(filename).tag
puts content
puts "Händel"