# Error if Export filename contains an apostrophe

**URL:** https://community.mp3tag.de/t/error-if-export-filename-contains-an-apostrophe/17759
**Category:** Export
**Created:** [March 16, 2016, 5:44pm UTC](https://community.mp3tag.de/t/error-if-export-filename-contains-an-apostrophe/17759 "2016-03-16T17:44:55Z")
**Posts on this page:** 1
**Showing post:** 2

<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: [March 16, 2016, 7:26pm UTC](https://community.mp3tag.de/t/error-if-export-filename-contains-an-apostrophe/17759/2 "2016-03-16T19:26:14Z")

</div>

> [@BillK](#):
>
> The Export utility generates an error when the Export filename contains an apostrophe. For example, if I specify in the dialog box that the output file should be named "Bill's Output" an error occurs, but "Bills Output" works fine. The error is that the output filename is changed to "[SYNTAX ERROR IN FORMATTING STRING]" ...

The error message lead you to the right conclusion: the filename of the report script is scriptable, like any other formatstring in Mp3tag.  
The apostrophe character is a reserved character in Mp3tag and is used to delimit a string of characters.  
If you want to see the true apostrophe character, then you have to write it twice.  
(bad) Bill's Output ==\> (good) Bill''s Output  
(bad) Bill's Output ==\> (good) 'Bill''''s Output'

Example for MTE file ...

**$filename($getEnv('USERPROFILE')'\Desktop\Export.Whatever.txt',UTF-8) $filename($getEnv('USERPROFILE')'\Desktop\Bill''''s Output.txt',UTF-8)**

See also ...  
[/t/17013/1](https://community.mp3tag.de/t/17013/1)

DD.20160316.2142.CET

---

_[View the full topic](https://community.mp3tag.de/t/error-if-export-filename-contains-an-apostrophe/17759)._
