Filenames / Unicode

Discovered a bug? If not sure, please post question in the support forum.

Filenames / Unicode

Postby VorteX24 » Thu Feb 16, 2006 4:27 pm

All Files on my Filesystem are encoded in Unicode.

I didnt find an option to make kplaylist recognize that, so in the directory browser, filenames are displayed as iso.

Like:

Till Brönner

instead of
Till Brönner

Or russian Filenames
КОМП

Changing the encoding in the browser doesnt change this behaviour.
I would really like to have that issue changed, can anyone help me with this?
VorteX24
 
Posts: 2
Joined: Thu Feb 16, 2006 4:21 pm

Re: Filenames / Unicode

Postby aba » Thu Feb 16, 2006 7:26 pm

VorteX24 wrote:All Files on my Filesystem are encoded in Unicode.

I didnt find an option to make kplaylist recognize that, so in the directory browser, filenames are displayed as iso.

Like:

Till Brönner

instead of
Till Brönner

Or russian Filenames
КОМП

Changing the encoding in the browser doesnt change this behaviour.
I would really like to have that issue changed, can anyone help me with this?


The good news is that this can probably be fixed in one single place quite easily. The bad news is that it's just probably.

Anyway, find this function:

Code: Select all
file_parse($f2, $link, $class, $str = FILETEMPLATE)


Under this function you should have the following line:

Code: Select all
case 'f': $add = checkchs($f2->fname); break;


Change it to:

Code: Select all
case 'f': $add = checkchs(utf8_decode($f2->fname)); break;


Of course, your PHP must support UTF8. (It's inbuilt, so it should work.)
Last edited by aba on Thu Feb 16, 2006 7:32 pm, edited 1 time in total.
aba
Site Admin
 
Posts: 2325
Joined: Wed May 08, 2002 9:19 am

Postby VorteX24 » Thu Feb 16, 2006 7:31 pm

ok, im going to try it.

thx
VorteX24
 
Posts: 2
Joined: Thu Feb 16, 2006 4:21 pm

Character Encoding Problem

Postby gdrak » Thu Feb 16, 2006 10:54 pm

Hi !!

I Have a problem in First page after login...
The Greek fonts for the disk folders are not encoding.. but all other fonts for the files and songs are good..

pls help.

Many thaks..
gdrak
 
Posts: 2
Joined: Tue Mar 22, 2005 5:28 pm

Postby manica » Fri May 12, 2006 7:54 pm

It's my first post, so first I want to say thank your for kplaylist -- it's amazing!

I've tried adding the utf8_decode function, but I don't see any difference. I also ran the update (with refreshing ID3), but I am still getting 8859-1 misrepresentations of my UTF-8 filenames. Interestingly, the directory structure at the top is correctly showing the UTF-8 symbols, but no the filenames.

Any thoughts?

Darin
manica
 
Posts: 10
Joined: Fri May 12, 2006 7:51 pm

Postby manica » Sat May 13, 2006 2:13 am

Got it. (A friend showed me how it did it, but I'll post it here for prosperity.)

I had to change the line that starts:
$klang[0] = array('English', 'ISO-8859-1'


with
$klang[0] = array('English', 'UTF-8'


Now it works great.

Darin
manica
 
Posts: 10
Joined: Fri May 12, 2006 7:51 pm


Return to Bugs