headphones icon indicating copy to clipboard operation
headphones copied to clipboard

â€tm instead of ’ for filenames

Open samkatakouzinos opened this issue 7 years ago • 10 comments

I'm finding that resultant files have â€tm instead of ’ in their names. One of my favourite albums doesn't get nice treatment lol, https://musicbrainz.org/release/9d852c9b-d1e3-464d-b0c1-52d1f1d92f68 There are other characters that also get butchered. Song name and Artist name both get affected.

Apparently a clash between UTF-8 and ISO-8859-1. https://askleo.com/why_do_i_get_odd_characters_instead_of_quotes_in_my_documents/

"Now, what happens when the UTF-8 series of numbers is interpreted as if it were ISO-8859-1? ’

Look familiar? 0xE28099 breaks down as 0xE2 (â), 0x80 (€) and 0x99 (™). What was one character in UTF-8 (’) gets mistakenly displayed as three (’) when misinterpreted as ISO-8859-1."

Are we mixing UTF-8 and ISO-8859-1 in headphones?

samkatakouzinos avatar Jan 02 '18 17:01 samkatakouzinos

I noticed that when I 'Post-Process Single Folder' (keep:on) and watch the temp folder in action that the filenames have conforming filenames. Then the temp folder is removed and the parent folder 'headphones' filenames look good. Then that is removed and the final location contains corrupted letters. It's when they are moved/copied to the final location that the filenames show corrupted letters.

samkatakouzinos avatar Jan 03 '18 03:01 samkatakouzinos

Windows?

AdeHub avatar Apr 22 '18 00:04 AdeHub

Windows 10 Pro.

samkatakouzinos avatar Apr 22 '18 14:04 samkatakouzinos

I'm seeing the same issue in Windows 8.1. In Temp the filenames are correct, but, when moved, get the ISO-8859-1 encoding.

hubdows avatar May 07 '18 17:05 hubdows

Seeing this as well in Windows 8.1.

DRiPX avatar Jul 15 '18 13:07 DRiPX

This issue appears to have been fixed for a period in December/2018 but now Dec. 23rd 2018 it is back again. Is this a headphones code issue or some underlying python module code issue or even some windows code issue? I'm running Windows 10 64bit and python 2.7

Thanks,

Bilbo avatar Dec 23 '18 23:12 Bilbo

Seeing the same issue with accented Artist and Track names "Bublé" becomes "BublÃ@" and esperándote becomes "esperándote"

Brendonwbrown avatar Feb 26 '19 18:02 Brendonwbrown

This issue also affects scanning the library. Whole folders and files get missed when doing a library scan. They have non-English characters in their name.

samkatakouzinos avatar Feb 27 '19 03:02 samkatakouzinos

I'm still seeing this issue with the apostrophe character and foreign characters. Is there a way to fix it manually in the code?

hubdows avatar Jul 16 '19 21:07 hubdows

Same problem with Windows 7.

DrakeJones avatar Nov 20 '19 12:11 DrakeJones