# Looking for help with the batch job to replace accented and non english characters

**URL:** https://community.mp3tag.de/t/looking-for-help-with-the-batch-job-to-replace-accented-and-non-english-characters/53779
**Category:** Mac
**Created:** [July 17, 2021, 2:51pm UTC](https://community.mp3tag.de/t/looking-for-help-with-the-batch-job-to-replace-accented-and-non-english-characters/53779 "2021-07-17T14:51:19Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Mufasa](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/db5fbb/32.png) [@Mufasa](https://community.mp3tag.de/u/Mufasa)
#### Post date: [July 17, 2021, 2:51pm UTC](https://community.mp3tag.de/t/looking-for-help-with-the-batch-job-to-replace-accented-and-non-english-characters/53779/1 "2021-07-17T14:51:19Z")

</div>

I'm looking to replace all the accented characters in my **file names** and **title-artist** field with regular english characters.

Its about 500 tracks.

Any help

I'm on Mac

---

<div class="post-metadata">

### Author: ![Wannastayunercover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/w/977dab/32.png) [@Wannastayunercover](https://community.mp3tag.de/u/Wannastayunercover)
#### Post date: [July 17, 2021, 6:13pm UTC](https://community.mp3tag.de/t/looking-for-help-with-the-batch-job-to-replace-accented-and-non-english-characters/53779/2 "2021-07-17T18:13:42Z")

</div>

I once made a quick one in my scripts with 20 regex : have fun :

$regexp($regexp($regexp($regexp($regexp($regexp($regexp($regexp($regexp($regexp($regexp($regexp($regexp($regexp($regexp($regexp($regexp($regexp($regexp($regexp(Mystring,'À|Á|Â|Ã|Ä|Å|Æ|à|á|â|ã|ä|å|æ|Ā|ā|Ă|ă|ą','a'),'Ç|ç|Ć|ć|Ĉ|ĉ|Ċ|ċ|Č|č','c'),'È|É|Ê|Ë|Ð|ð|Ē|ē|Ĕ|ĕ|Ė|ė|Ę|ę|Ě|ě','e'),'Ì|Í|Î|Ï|ì|í|î|ï|Ĩ|ĩ|Ī|ī|Ĭ|ĭ|Į|İ|ı|Ĳ|ĳ','i'),'ñ|Ń|ń|Ņ|ņ|Ň|ň|ŉ|Ŋ|ŋ','n'),'ò|ó|ô|õ|ö|ø|Ō|ō|Ŏ|ŏ|Ő|ő|Œ|œ','o'),'ù|ú|û|ü|Ũ|ũ|ū|Ŭ|ŭ|Ů|ů|Ű|ű|Ų|ų','u'),'ý|ÿ|Ŷ|ŷ|Ÿ','y'),'Þ|þ','p'),'ß|Ś|ś|Ŝ|ŝ|Ş|ş|Š|š|ſ','s'),'Ď|ď|Đ|đ','d'),'Ĝ|ĝ|Ğ|ğ|Ġ|ġ|Ģ|ģ','g'),'Ĥ|ĥ|Ħ|ħ','h'),'Ĵ|ĵ','j'),'Ķ|ķ|ĸ','k'),'Ĺ|ĺ|Ļ|ļ|Ľ|ľ|Ŀ|ŀ|Ł|ł','l'),'Ŕ|ŕ|Ŗ|ŗ|Ř|ř','r'),'Ţ|ţ|Ť|ť|Ŧ|ŧ','t'),'Ŵ|ŵ','w'),'Ź|ź|Ż|ż|Ž|ž','z')

---

<div class="post-metadata">

### Author: ![Mufasa](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/db5fbb/32.png) [@Mufasa](https://community.mp3tag.de/u/Mufasa)
#### Post date: [July 17, 2021, 7:52pm UTC](https://community.mp3tag.de/t/looking-for-help-with-the-batch-job-to-replace-accented-and-non-english-characters/53779/3 "2021-07-17T19:52:56Z")

</div>

Thank you very much.

I'm also trying to remove invalid characters that will not work in Windows.

things like ", ? etc in file names

I had a look at this thread but i'm not getting any joy

> [@How to Replace Illegal Characters Upon Writing Tags to Filename](https://community.mp3tag.de/t/how-to-replace-illegal-characters-upon-writing-tags-to-filename/16397):
>
> Hi Everybody, I have scoured the Mp3tag Scripting Functions, but cannot get this right: I want to replace the "illegal" Windows characters such as (:, ", ?, /, \*, |) and so forth, with any character of my own choosing, not just blank spaces. Can someone please help me with a script do just that? Also, how do I set it up so that every time Mp3tag writes the tag to filename, the illegal characters are replaced with my own? Thanks for your assistance. PS. I want to retain the "illegal" character…

---

<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: [July 18, 2021, 7:41am UTC](https://community.mp3tag.de/t/looking-for-help-with-the-batch-job-to-replace-accented-and-non-english-characters/53779/5 "2021-07-18T07:41:17Z")

</div>

> [@Mufasa](#):
>
> I'm also trying to remove invalid characters that will not work in Windows.

You can enable the configuration setting _Preferences → General → Replace invalid NTFS characters_ to let Mp3tag replace them automatically when renaming.

---

<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: [July 19, 2021, 8:59am UTC](https://community.mp3tag.de/t/looking-for-help-with-the-batch-job-to-replace-accented-and-non-english-characters/53779/8 "2021-07-19T08:59:30Z")

</div>

I've removed some posts in this topic that referenced scripting functions not available on the Mac version of Mp3tag.

---

<div class="post-metadata">

### Author: ![Mufasa](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/db5fbb/32.png) [@Mufasa](https://community.mp3tag.de/u/Mufasa)
#### Post date: [July 19, 2021, 2:49pm UTC](https://community.mp3tag.de/t/looking-for-help-with-the-batch-job-to-replace-accented-and-non-english-characters/53779/9 "2021-07-19T14:49:57Z")

</div>

Thanks for the reply. I have this enabled already, just not sure if its working.

Does it check folder names as well?

Eg i have all my Music in one Folder lets call this "DJ MUSIC"

This has subfolders and some of them date back to when i was using i-tunes to manage my music (bad bad bad idea). I have not done this in the last 10 years. I no longer manage my music this way - I use my own structure now basically Genre as Folder and files go into that.

So i have Folders like

- **D'Angelo** with his albums has subfolder
- **Beyoncé** folder with her albums as well

These all work perfectly on Mac btw, but trying to use same drive on windows i have ran into trouble with these illegal characters.
