summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2010-10-18 20:38:18 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2010-10-18 20:38:18 -0700
commit9498b99fdd97449de74e233ed0da9c127b938cbe (patch)
tree4c99f8c5d8203462fab13242cd270d94f3a4d913
parent454877c42ab16428da6cddee813077cea4d4c794 (diff)
downloadomptagger-9498b99fdd97449de74e233ed0da9c127b938cbe.tar.gz
omptagger-9498b99fdd97449de74e233ed0da9c127b938cbe.tar.xz
Use UTF8 strings.
-rwxr-xr-xomptagger6
1 files 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