beetbox / beets

music library manager and MusicBrainz tagger
http://beets.io/
MIT License
12.74k stars 1.82k forks source link

web: JavaScript character when searching for Chinese characters #602

Open kmephistoh opened 10 years ago

kmephistoh commented 10 years ago

I use web plugin , it can't search Chinese in the search box. Access route url for Chinese will be ok.

sampsyo commented 10 years ago

Hmm; could be an encoding problem. Is there an error, either on the client side (in the JavaScript console) or the server side (beets' output)?

kmephistoh commented 10 years ago

JavaScript console 6 errors 1 warning: event.returnValue is deprecated. Please use the standard event.preventDefault() instead.

Uncaught URIError: URI malformed backbone.js:856 Uncaught URIError: URI malformed backbone.js:856 .extend.navigate backbone.js:856 .extend.navigate backbone.js:696 Backbone.View.extend.querySubmit beets.js:222 jQuery.event.dispatch jquery.js:3256 elemData.handle.eventHandle jquery.js:2875

I search “大乔”,direcotry path is:

kevin@Arch ~/music/Non-Album $ pwd /home/kevin/music/Non-Album kevin@Arch ~/music/Non-Album $ ll
total 4 drwxr-xr-x 2 kevin kevin 4096 Mar 11 15:12 大乔小乔

beet config:

data directory: /home/kevin/.config/beets library database: /home/kevin/music/data/musiclibrary.blb library directory: /home/kevin/music

access http://localhost:8337/#item/query/大乔小乔 work well

sampsyo commented 10 years ago

Thanks for the details. I reproduced this in Safari; it seems to be a front-end JavaScript issue on this line. The fault may be occurring in Backbone, since I think we're passing along a correctly escaped path. This may just require a Backbone library upgrade.