Skip to content

Instantly share code, notes, and snippets.

# coding: utf-8
require "mp3info"
filename = "Haendel--Messiah - Evry valley--.mp3"
content = Mp3Info.open(filename).tag
puts content
puts "Händel"
require 'iconv'
require "mp3info"
filename = "Haendel--Messiah - Evry valley--.mp3"
artist = Mp3Info.open(filename, :encoding => 'utf-8').tag.artist
puts artist.inspect