urllib unqoute providing string mismatch between string found using os.walk (Python3)

Chris Angelico rosuav at gmail.com
Sat Dec 21 20:14:01 EST 2019


On Sun, Dec 22, 2019 at 11:33 AM Michael Torrie <torriem at gmail.com> wrote:
>
> On 12/21/19 2:46 PM, Ben Hearn wrote:
> > These 2 paths look identical, one from the drive & the other from an xml url:
> > a = '/Users/macbookpro/Music/tracks_new/_NS_2018/J.Staaf - ¡Móchate! _PromoMix_.wav'
>                                                                ^^
> > b = '/Users/macbookpro/Music/tracks_new/_NS_2018/J.Staaf - ¡Móchate! _PromoMix_.wav'
>                                                                ^^
> They are actually are different strings.  The name is spelled
> differently between the two.  Móchate vs Móchate (the former seems to
> be the correct spelling according to my inline spell checker).  Is this
> from your own program? I wonder how it got switched?

Then your inline spell checker is flawed, because the two strings
differ only in whether a single "o with acute" or a pair "o" and
"combining acute" is used to represent the accented letter. The word
is the same either way.

ChrisA


More information about the Python-list mailing list