From 9498b99fdd97449de74e233ed0da9c127b938cbe Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Mon, 18 Oct 2010 20:38:18 -0700 Subject: Use UTF8 strings. --- omptagger | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/omptagger b/omptagger index fb4fc96..b5534b7 100755 --- a/omptagger +++ b/omptagger @@ -326,14 +326,14 @@ class VorbisComment < Metadata def write read.each_key do |field| - metadata.removeField(TagLib::String.new(field)) + metadata.removeField(TagLib::String.new(field, TagLib::String::UTF8)) end @metadata.each do |field, value| - field = TagLib::String.new(field) + field = TagLib::String.new(field, TagLib::String::UTF8) value.each do |value| - metadata.addField(field, TagLib::String.new(value), false) + metadata.addField(field, TagLib::String.new(value, TagLib::String::UTF8), false) end end -- cgit v1.2.3-70-g09d2