quodlibet / quodlibet

Music player and music library manager for Linux, Windows, and macOS
https://quodlibet.readthedocs.io
GNU General Public License v2.0
1.44k stars 223 forks source link

Search function doesn't support Chinese #227

Closed lazka closed 9 years ago

lazka commented 9 years ago

Original issue 227 created by allon.pan on 2009-06-18T08:07:42.000Z:

If I input English to search e.g. Celine, all relevant songs come out, but input Chinese to search leads to nothing.

lazka commented 9 years ago

Comment #1 originally posted by murman on 2009-06-18T14:58:22.000Z:

Could you please provide a sample search string and song metadata (for example via the Export plugin) that should be found but isn't? I had no problems searching for Japanese characters, so I'm surprised that Chinese would cause problems.

lazka commented 9 years ago

Comment #2 originally posted by Phoenix.Nox on 2009-07-19T23:25:31.000Z:

Not sure if this is the same problem, but... When searching for ~filename=マシーン ; ~filename="LOVE" ; "LOVE" or マシーン nothing is returned, whereas ~filename=LOVE or simply LOVE returns all directories containing LOVEマシーン. (Well, some tracks that have LOVEマシーン as the artist are returned when searching for マシーン but nothing else.)

The same thing happens with ~dirname. The text is colored green suggesting that the syntax is valid.

lazka commented 9 years ago

Comment #3 originally posted by joe.wreschnig on 2009-07-20T23:04:23.000Z:

What encoding is your filesystem?

lazka commented 9 years ago

Comment #4 originally posted by allon.pan on 2009-07-21T03:22:23.000Z:

Mine is NTFS under a wubi installed Ubuntu linux.

lazka commented 9 years ago

Comment #5 originally posted by Phoenix.Nox on 2009-07-21T18:13:51.000Z:

Err, sorry not sure how to check which encoding is being used (searching found nothing). Though the file system for the partition where I store my music is ext3, if that is what you mean?

lazka commented 9 years ago

Comment #6 originally posted by fnordpol on 2011-03-26T10:04:58.000Z:

I'm facing a similar problem (though with japanese characters, so the issue title is kind of misleading).

I have a file '~/Music/!leute/ナツコから/some i like/05 ダンス2000.m4a', with the artist 'フジファブリック'.

Searching for artist = /フジファブリック/ gives the result, but searching for ~dirname = /ナツコ/ or ~filename = /ダンス/ returns no results at all. The filesystem is ext-3, the encoding utf-8, and otherwise I experience no problems with filenames and such (e.g. 'locate ダンス' returns the abovementioned file).

lazka commented 9 years ago

Comment #7 originally posted by reiter.christoph on 2011-12-20T18:04:01.000Z:

Issue #867 has been merged into this issue.

lazka commented 9 years ago

Comment #8 originally posted by thisfred on 2011-12-20T18:59:39.000Z:

As far as I can tell, searches with non-ascii characters work for most tags, just not for ~filename, ~basename and ~dirname, and then it only fails if the search expression contains a non-ascii character (so a search for ~filename=testfile, will return a file like 'testfile-é.mp3.)

lazka commented 9 years ago

Comment #9 originally posted by reiter.christoph on 2012-04-21T11:00:26.000Z:

This issue was closed by revision fc57d82d0799.