diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-04-15 06:53:05 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-04-15 06:53:05 +0000 |
commit | 7c2ea50e2444ce2fdcc1a2b7b03f78cda4fda22e (patch) | |
tree | ccb1b2404db6407a3d77c6bd53295e4e5ced8365 /bin/fix_filenames.inc | |
parent | e6c1d2b6990c0b98b82e1ed889445df84ae14a3b (diff) | |
download | ampache-7c2ea50e2444ce2fdcc1a2b7b03f78cda4fda22e.tar.gz ampache-7c2ea50e2444ce2fdcc1a2b7b03f78cda4fda22e.tar.bz2 ampache-7c2ea50e2444ce2fdcc1a2b7b03f78cda4fda22e.zip |
add a little more information and or debug
Diffstat (limited to 'bin/fix_filenames.inc')
-rw-r--r-- | bin/fix_filenames.inc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/bin/fix_filenames.inc b/bin/fix_filenames.inc index 247e3724..32ceedf2 100644 --- a/bin/fix_filenames.inc +++ b/bin/fix_filenames.inc @@ -1,7 +1,7 @@ <?php /* - Copyright 2001 - 2008 Ampache.org + Copyright Ampache.org All Rights Reserved This program is free software; you can redistribute it and/or @@ -42,6 +42,14 @@ if (!function_exists('iconv')) { exit; } +// Attempt a simple translation +$string = iconv(Config::get('site_charset'),Config::get('site_charset'),'For the Love of Music'); +echo "Testing Basic Translation, the two strings below should look the same\n"; +echo "Original: For the Love of Music\n"; +echo "Translated: $string\n"; +echo "---------------------------------------------------------------------\n"; + + $sql = "SELECT * FROM `catalog` WHERE `catalog_type`='local'"; $db_results = Dba::query($sql); @@ -98,6 +106,7 @@ function charset_directory_correct($path) { $translated_filename = iconv(Config::get('site_charset'),Config::get('site_charset') . '//IGNORE',$full_file); if (strcmp($full_file,$translated_filename) != '0') { + echo "Attempting to Transcode to " . Config::get('site_charset') . "\n"; echo "--------------------------------------------------------------------------------------------\n"; echo "OLD:$full_file has invalid chars\nNEW:$translated_filename\n"; echo "--------------------------------------------------------------------------------------------\n"; |