diff src/madplug/input.c @ 685:46743e3ebcc1 trunk

[svn] Use g_convert instead of str_to_utf8. This fixes ID3-Tags with ISO8859-1 encoded umlauts.
author js
date Tue, 20 Feb 2007 05:51:23 -0800
parents 1ea4cfb007e0
children 6dd733e046fa
line wrap: on
line diff
--- a/src/madplug/input.c	Tue Feb 20 05:47:25 2007 -0800
+++ b/src/madplug/input.c	Tue Feb 20 05:51:23 2007 -0800
@@ -311,7 +311,7 @@
     switch (encoding) {
     case ID3_FIELD_TEXTENCODING_ISO_8859_1:
         rtn0 = (gchar *)id3_ucs4_latin1duplicate(string);
-        rtn = str_to_utf8(rtn0);
+        rtn = g_convert(rtn0, -1, "utf8", "iso8859-1", NULL, NULL, NULL);
         g_free(rtn0);
         break;
     case ID3_FIELD_TEXTENCODING_UTF_8: