vdr-burn-0.1.0_pre21 using correct charset with >=vdr-1.5.3
Commit Message
Hi there!
The attached patch lets vdr-burn-0.1.0_pre21 use the correct charset that vdr
itself uses. This stops vdr-burn to double utf8 encode texts.
Matthias
===================================================================
@@ -45,8 +45,13 @@ namespace vdr_burn
string plugin::get_character_encoding()
{
-#ifdef UTF8PATCH
- return "utf8";
+#if VDRVERSNUM >= 10503
+ if (cCharSetConv::SystemCharacterTable())
+ return cCharSetConv::SystemCharacterTable();
+ else
+ return "utf-8";
+#elif defined(UTF8PATCH)
+ return "utf-8";
#else
return tr("iso8859-15");
#endif