# \[X\] Mp3tag omits "/" when converting (tags-\>filename)

**URL:** https://community.mp3tag.de/t/x-mp3tag-omits-when-converting-tags-filename/12049
**Category:** No Bugs
**Created:** [May 25, 2011, 11:28pm UTC](https://community.mp3tag.de/t/x-mp3tag-omits-when-converting-tags-filename/12049 "2011-05-25T23:28:18Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![wsdoud](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/w/59ef9b/32.png) [@wsdoud](https://community.mp3tag.de/u/wsdoud)
#### Post date: [May 25, 2011, 11:28pm UTC](https://community.mp3tag.de/t/x-mp3tag-omits-when-converting-tags-filename/12049/1 "2011-05-25T23:28:18Z")

</div>

I have an mp3 file whose title tag contains a slash character "/". When I use the convert function in mp3tag to rename the file based on its tags, it omits the "/". For example, if the title tag is "16/05" and the artist tag is "Don Bigg", after the conversion (%artist% - %title%), the filename comes out as "Don Bigg - 1605". Does anyone know why does that happen or how to avoid it?

Thank you beforehand.

---

<div class="post-metadata">

### Author: ![mjcm](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/9d8465/32.png) [@mjcm](https://community.mp3tag.de/u/mjcm)
#### Post date: [May 26, 2011, 1:14am UTC](https://community.mp3tag.de/t/x-mp3tag-omits-when-converting-tags-filename/12049/2 "2011-05-26T01:14:20Z")

</div>

This is because the '/' is an illegal character in a filename.

[http://msdn.microsoft.com/en-us/library/aa...v=vs.85%29.aspx](http://msdn.microsoft.com/en-us/library/aa365247%28v=vs.85%29.aspx)

Use any character in the current code page for a name, including Unicode characters and characters in the extended character set (128–255), except for the following:

```
The following reserved characters:
    < (less than)
    > (greater than)
    : (colon)
    " (double quote)
    / (forward slash)
    \ (backslash)
    | (vertical bar or pipe)
    ? (question mark)
    * (asterisk)
```

---

<div class="post-metadata">

### Author: ![wsdoud](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/w/59ef9b/32.png) [@wsdoud](https://community.mp3tag.de/u/wsdoud)
#### Post date: [June 6, 2011, 12:19pm UTC](https://community.mp3tag.de/t/x-mp3tag-omits-when-converting-tags-filename/12049/3 "2011-06-06T12:19:04Z")

</div>

> [@Mike\_nl](#):
>
> This is because the '/' is an illegal character in a filename.
> 
> [http://msdn.microsoft.com/en-us/library/aa...v=vs.85%29.aspx](http://msdn.microsoft.com/en-us/library/aa365247%28v=vs.85%29.aspx)
> 
> Use any character in the current code page for a name, including Unicode characters and characters in the extended character set (128–255), except for the following:
> 
> ```
> The following reserved characters:
> < (less than)
> > (greater than)
> : (colon)
> " (double quote)
> / (forward slash)
> \ (backslash)
> | (vertical bar or pipe)
> ? (question mark)
> * (asterisk)
> 
> ```

Oh OK!

In fact, I have Mp3tag installed on Mac OS X ('/' character is allowed in filenames) using Winebottler, so I guess I'd have to add the '/' manually.

Thanks!

---

<div class="post-metadata">

### Author: ![LosMintos](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/54ee81/32.png) [@LosMintos](https://community.mp3tag.de/u/LosMintos)
#### Post date: [June 7, 2011, 9:31am UTC](https://community.mp3tag.de/t/x-mp3tag-omits-when-converting-tags-filename/12049/4 "2011-06-07T09:31:00Z")

</div>

> [@wsdoud](#):
>
> In fact, I have Mp3tag installed on Mac OS X ('/' character is allowed in filenames) using Winebottler, so I guess I'd have to add the '/' manually.

This is not recommended because of portability of such files.

---

<div class="post-metadata">

### Author: ![mjcm](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/9d8465/32.png) [@mjcm](https://community.mp3tag.de/u/mjcm)
#### Post date: [June 7, 2011, 9:36am UTC](https://community.mp3tag.de/t/x-mp3tag-omits-when-converting-tags-filename/12049/5 "2011-06-07T09:36:04Z")

</div>

> [@wsdoud](#):
>
> In fact, I have Mp3tag installed on Mac OS X ('/' character is allowed in filenames) using Winebottler, so I guess I'd have to add the '/' manually.

> [@LosMintos](#):
>
> This is not recommended because of portability of such files.

I concur with LosMintos, why don't you use a '-' (dash) instead ?

From 16/05 to 16-05 it doesn't looks that bad 😉

---

<div class="post-metadata">

### Author: ![pone](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pone/32/272_2.png) [@pone](https://community.mp3tag.de/u/pone)
#### Post date: [June 7, 2011, 9:42am UTC](https://community.mp3tag.de/t/x-mp3tag-omits-when-converting-tags-filename/12049/6 "2011-06-07T09:42:41Z")

</div>

> [@Mike\_nl](#):
>
> I concur with LosMintos, why don't you use a '-' (dash) instead ?
> 
> From 16/05 to 16-05 it doesn't looks that bad 😉

You know the $validate function?

$validate(%artist% - %title%,-)

will make you expample to "Don Bigg - 16-05.mp3"

---

<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, 2:30pm UTC](https://community.mp3tag.de/t/x-mp3tag-omits-when-converting-tags-filename/12049/7 "2018-12-28T14:30:24Z")

</div>

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