# \[X\] Path handling should escape special characters but doesn't

**URL:** https://community.mp3tag.de/t/x-path-handling-should-escape-special-characters-but-doesnt/18941
**Category:** No Bugs
**Created:** [May 1, 2017, 9:27pm UTC](https://community.mp3tag.de/t/x-path-handling-should-escape-special-characters-but-doesnt/18941 "2017-05-01T21:27:27Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![marcusj0015](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/43a26b/32.png) [@marcusj0015](https://community.mp3tag.de/u/marcusj0015)
#### Post date: [May 1, 2017, 9:27pm UTC](https://community.mp3tag.de/t/x-path-handling-should-escape-special-characters-but-doesnt/18941/1 "2017-05-01T21:27:27Z")

</div>

I've got an action that will move songs to my music folder based on the artist's and album name,

so it's Drive:/Music/%Artist%/%Album%/

then it renames the files to %Title%.%extension%

MP3tag 2.81 from Feb 17th 2017 just gave my an error and crashed over "Cam'Ron"'s CD "Come Home With Me"

and I think the error is that you didn't escape the apostrophe in his name.

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [May 1, 2017, 10:42pm UTC](https://community.mp3tag.de/t/x-path-handling-should-escape-special-characters-but-doesnt/18941/2 "2017-05-01T22:42:07Z")

</div>

> [@marcusj0015](#):
>
> I've got an action that will move songs to my music folder based on the artist's and album name, so it's Drive:/Music/%Artist%/%Album%/ then it renames the files to %Title%.%extension%  
> MP3tag 2.81 from Feb 17th 2017 just gave my an error and crashed over "Cam'Ron"'s CD "Come Home With Me" and I think the error is that you didn't escape the apostrophe in his name.

Who is meant by "you"? Isn't it you and yourself doing?  
Read there ...  
[How to remove apostrophes from titles](https://community.mp3tag.de/t/17013/3)

... and please show us the action you got.

DD.20170502.0241.CEST

---

<div class="post-metadata">

### Author: ![marcusj0015](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/43a26b/32.png) [@marcusj0015](https://community.mp3tag.de/u/marcusj0015)
#### Post date: [May 1, 2017, 10:43pm UTC](https://community.mp3tag.de/t/x-path-handling-should-escape-special-characters-but-doesnt/18941/3 "2017-05-01T22:43:10Z")

</div>

Obviously the author of MP3tag...

But, maybe it's on my end.

Edit: Ok but that's literally his name...

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [May 2, 2017, 3:12am UTC](https://community.mp3tag.de/t/x-path-handling-should-escape-special-characters-but-doesnt/18941/4 "2017-05-02T03:12:54Z")

</div>

> [@marcusj0015](#):
>
> I've got an action that will move songs to my music folder based on the artist's and album name,
> 
> so it's Drive:/Music/%Artist%/%Album%/
> 
> then it renames the files to %Title%.%extension%
> 
> MP3tag 2.81 from Feb 17th 2017 just gave my an error and crashed over "Cam'Ron"'s CD "Come Home With Me"
> 
> and I think the error is that you didn't escape the apostrophe in his name.

I just tried it with  
ARTIST: Cam'Ron  
ALBUM: Come Home With Me  
Title: whatever  
Nothing crashed.

I tried it with 2.82 and 2.81c so perhaps an update might work wonders.  
As the apostrophe is a valid character for filenames, I doubt that this has to be escaped.  
I wonder though what the data looks like in %extension% as this is no standard name in MP3tag for a file property.

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [December 28, 2018, 6:51pm UTC](https://community.mp3tag.de/t/x-path-handling-should-escape-special-characters-but-doesnt/18941/5 "2018-12-28T18:51:26Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
