I understand that dbpoweramp now support unicode but my problem is like this. I am using Eng Windows 7 and I can display chinese content on IE8 perfectly. However, when I try to rip chinese music, all the songs name and artist name is not properly displayed. Is there any way to get around this? I try to rip with iTune and the tagging and display has no problem....
unicode support
Collapse
X
-
Re: unicode support
Your specific discs must not be in the online databases (in Chinese) that dbpoweramp uses. -
-
Re: unicode support
I did some research in internet. The problem is wrong encoded data from servers. I decided to use freedb proxy with transcoding. It's not easyest way but it's work
Script code is below:
[PHP]
<?php
function DownloadUrl($url, $post)
{
$ch = curl_init(); // create a new curl resource
curl_setopt( $ch, CURLOPT_URL, $url ); // set URL to download
curl_setopt( $ch, CURLOPT_REFERER, "" ); // set referer:
curl_setopt( $ch, CURLOPT_USERAGENT, "CharsetConverterScript/1.0" ); // user agent:
curl_setopt( $ch, CURLOPT_HEADER, 0 ); // remove header? 0 = yes, 1 = no
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true ); // should curl return or print the data? true = return, false = print
curl_setopt( $ch, CURLOPT_TIMEOUT, 10 ); // timeout in seconds
curl_setopt( $ch, CURLOPT_POST, 1);
curl_setopt( $ch, CURLOPT_POSTFIELDS, http_build_query($post));
// download the given URL, and return output
$output = curl_exec( $ch );
// close the curl resource, and free system resources
curl_close( $ch );
return $output;
}
$resp = DownloadUrl( 'http://freedb.freedb.org/~cddb/cddb.cgi', $_POST );
$resp = iconv( 'UTF-8', 'WINDOWS-1252', $resp );
$resp = iconv( 'WINDOWS-1251', 'UTF-8', $resp );
header( 'Content-type: text/plain; charset=utf-8' );
echo $resp;
?>
[/PHP]
You should setup script at you server as http://you_server/~cddb/cddb.cgi
Au you see the script transcode russian characters, you could play with code pages for best result with you disksComment
Comment