diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2010-10-18 20:38:18 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2010-10-18 20:38:18 -0700 |
commit | 9498b99fdd97449de74e233ed0da9c127b938cbe (patch) | |
tree | 4c99f8c5d8203462fab13242cd270d94f3a4d913 | |
parent | 454877c42ab16428da6cddee813077cea4d4c794 (diff) | |
download | omptagger-9498b99fdd97449de74e233ed0da9c127b938cbe.tar.gz omptagger-9498b99fdd97449de74e233ed0da9c127b938cbe.tar.xz |
Use UTF8 strings.
-rwxr-xr-x | omptagger | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |