Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Media: display encoded entities instead of special char #8

Closed
MorrisJobke opened this issue May 23, 2013 · 1 comment
Closed

Media: display encoded entities instead of special char #8

MorrisJobke opened this issue May 23, 2013 · 1 comment
Labels

Comments

@MorrisJobke
Copy link
Contributor

If you have a mp3 / ogg file with non ascii char in them,
the media app will display escaped char instead of the char istelf.

In the DB the escape version is storred ... it may be the problem.

EX :
L'ambitieuse Is displayed as L'ambitieuse

The problem can also be related to owncloud/core#150

The problem occures in OC 4.5 and in master


Originally reported by @eMerzh at owncloud-archive/apps#135

@MorrisJobke
Copy link
Contributor Author

I found a possible solution for this. In apps/media/js/collection.js around line 181 is the following line:

newRow.find('td.title a').text(song.name);

replace it with the following and then it displays the apostrophe correctly

newRow.find('td.title a').html(song.name).text();

This line appears in other places within the code as well and probably should be fixed. I don't know if this is the best solution or not, probably parsing song.name when it is parsed after the json success would be a better choice, but this was quick and easy.


Original comment by @ScottGeiger at owncloud-archive/apps#135 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant