$cfg['convertcharset'] = true;
$cfg['filesystemcharset'] = 'CP1251'; $this->data = '<?xml version="1.0" encoding="ISO-8859-1"?>'.$this->lf;tcghost wrote:I have the following 2 settings set, maybe it will help:
- Code: Select all
$cfg['convertcharset'] = true;
$cfg['filesystemcharset'] = 'CP1251';
Also, rss feeds still are ISO-8859-1 encoded...
- Code: Select all
$this->data = '<?xml version="1.0" encoding="ISO-8859-1"?>'.$this->lf;
function search_qupdorins($id, $finf, $filein, $md5, $drive, $mtime, $f_stat, $fsize)
function search_qupdorins($id, $finf, $filein, $md5, $drive, $mtime, $f_stat, $fsize)
{
if (UTF8MODE)
{
$utf_filein = iconv('', 'UTF-8', $filein);
$utf_filein = $utf_filein ? $utf_filein : $filein;
} else $utf_filein = $free;
if ($id > 0) $sql = 'UPDATE '; else $sql = 'INSERT INTO ';
$sql .= TBL_SEARCH.' SET title = "'.myescstr($finf['title']).'", fname = "'.myescstr(kp_basename($filein)).'", fpath = "'.myescstr(getrelative($filein)).'", album = "'.myescstr($finf['album']).'", artist = "'.myescstr($finf['artist']).'", md5 = "'.$md5.'", free = "'.myescstr(kp_basename($utf_filein)).'", genre = '. vernumset($finf['genre'],255).', lengths = '.$finf['lengths'].', ratemode = '.$finf['ratemode'].', bitrate = '.(int)$finf['bitrate'].', drive = '.$drive.', mtime = '.$mtime.', dirname = "'.myescstr(getrelative($utf_filein)).'", f_stat = '.$f_stat.', fsize = '.$fsize.', track = '.$finf['track'].', `year` = '.$finf['year'].', comment = "'.myescstr($finf['comment']).'", ftypeid = '.$finf['ftypeid'].', id3image = '.$finf['id3image'];
if ($id > 0) $sql .= ' WHERE id = '.$id; else $sql .= ', `date` = '.$mtime;
return $sql;
}
tcghost wrote:wow, that fixed it! thank you again for all your help!
the only issue left that I see is that the update window still displays non-ansi characters in filenames as squares, but that's minor and barely noticable.
Oh, just noticed one more thing: when I'm 2 directories deep and click on the "go one directory up" link, it takes me to the root. the url it takes me to is:
kp451c.php?pwd=y+Xt6O3j8ODkLw==&d=0
when the url it should be is:
kp451c.php?n3=163_-677857309&pwd=&d=0
emz wrote:I have downloaded version 1.7 453 and i've updated my old one. Everything is working , but.. i see the bulletin in an unknown language. I don't think it's language at all. It's unreadable. It have to be in Bulgarian. The version is with UTF-8 default encoding. Everything else is readable.
tcghost wrote:got another problem:
the playlists entries are displayed as weird characters. I'm guessing it's because the id3 entries are unicode and the playlists have to be ansi, and the entries are not converted. I also heard about a new playlist format m3u8 that supports unicode, any chance that it can be implemented?
Thank you again for all your work on unicode support!
return $this->crlf.'#EXTINF:'.$lengths.','.$name; return $this->crlf.'#EXTINF:'.$lengths.','.@iconv('UTF-8', 'CP1251', $name); $this->data .= '<TITLE>'.$f2->gentitle(array('track', 'title', 'album', 'artist')).'</TITLE>'.$this->crlf; $this->data .= '<TITLE>'.@iconv('UTF-8', 'CP1251', $f2->gentitle(array('track', 'title', 'album', 'artist'))).'</TITLE>'.$this->crlf;Warning: filesize() [function.filesize]: stat failed for E://Music/?�?????? - ????.mp3 in D:\xampplite\htdocs\kplaylist\index.php on line 8790
Warning: filemtime() [function.filemtime]: stat failed for E://Music/?�?????? - ????.mp3 in D:\xampplite\htdocs\kplaylist\index.php on line 8791
Could not determine this file: E://Music/?�?????? - ????.mp3, skipped.$fsize = filesize($file);
$mtime = filemtime($file);jrudiman wrote:Hello,
I recently installed kplaylist utf8 version (from "customize").
All descriptions (id3) are displayed correctly (asian languages in my case). This happen with non-asian filenames. However, files unicode filenames, they are not even considered when "updating". I get this errors:
- Code: Select all
Warning: filesize() [function.filesize]: stat failed for E://Music/?�?????? - ????.mp3 in D:\xampplite\htdocs\kplaylist\index.php on line 8790
Warning: filemtime() [function.filemtime]: stat failed for E://Music/?�?????? - ????.mp3 in D:\xampplite\htdocs\kplaylist\index.php on line 8791
Could not determine this file: E://Music/?�?????? - ????.mp3, skipped.
These 2 linecodes are from function "search_updatelist":
- Code: Select all
$fsize = filesize($file);
$mtime = filemtime($file);
Do you know what could be wrong?
aba wrote:Two things:
1. You need getid3 (1.7).
2. Look at:
$cfg['convertcharset']
$cfg['filesystemcharset']
in the script.
Åge
$cfg['convertcharset'] = true;
$cfg['filesystemcharset'] = 'UTF-8';
$cfg['utf8mode'] = true;jrudiman wrote:aba wrote:Two things:
1. You need getid3 (1.7).
2. Look at:
$cfg['convertcharset']
$cfg['filesystemcharset']
in the script.
Åge
Hi Åge,
I have getid3 1.7.7 and
- Code: Select all
$cfg['convertcharset'] = true;
$cfg['filesystemcharset'] = 'UTF-8';
$cfg['utf8mode'] = true;
In fact, if i rename these japanese filenames to english filenames, they are displayed and shows the correct japanese ID3 tags. All the unicode stuff seems to be working fine except for unicode filenames.[/code]
Any clue?
aba wrote:Can you try with the latest build? 477. I've added some more checks there that might give you a clue.
Warning: Invalid argument supplied for foreach() in D:\xampplite\htdocs\kplaylist\getid3\module.tag.apetag.php on line 190