# Change Bartók Béla to Bartok Bela (loose the special chars)

**URL:** https://community.mp3tag.de/t/change-bartok-bela-to-bartok-bela-loose-the-special-chars/9129
**Category:** Support
**Created:** [October 12, 2009, 4:14pm UTC](https://community.mp3tag.de/t/change-bartok-bela-to-bartok-bela-loose-the-special-chars/9129 "2009-10-12T16:14:31Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![MrRalph](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/a9adbd/32.png) [@MrRalph](https://community.mp3tag.de/u/MrRalph)
#### Post date: [October 12, 2009, 4:14pm UTC](https://community.mp3tag.de/t/change-bartok-bela-to-bartok-bela-loose-the-special-chars/9129/1 "2009-10-12T16:14:31Z")

</div>

Hello, I'd like to rename folders (with a _DIRECTORY action) so that no special chars are being used. I'd like to allow a-Z, 0-9 and -_

The nicest would be that Bartók Béla (artist tag) is renamed to Bartok Bela in the foldername. Is this possible?

Thanks, Ralph

---

<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: [October 12, 2009, 4:58pm UTC](https://community.mp3tag.de/t/change-bartok-bela-to-bartok-bela-loose-the-special-chars/9129/2 "2009-10-12T16:58:00Z")

</div>

> [@MrRalph](#):
>
> Hello, I'd like to rename folders (with a _DIRECTORY action) so that no special chars are being used. I'd like to allow a-Z, 0-9 and -_  
> The nicest would be that Bartók Béla (artist tag) is renamed to Bartok Bela in the foldername. Is this possible? Thanks, Ralph

Read there: [Unicode to ASCII](https://community.mp3tag.de/t/7279/1)

DD.20091012.2058.CEST

---

<div class="post-metadata">

### Author: ![MrRalph](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/a9adbd/32.png) [@MrRalph](https://community.mp3tag.de/u/MrRalph)
#### Post date: [October 12, 2009, 6:22pm UTC](https://community.mp3tag.de/t/change-bartok-bela-to-bartok-bela-loose-the-special-chars/9129/3 "2009-10-12T18:22:24Z")

</div>

> [@DetlevD](#):
>
> Read there: [Unicode to ASCII](https://community.mp3tag.de/t/7279/1)
> 
> DD.20091012.2058.CEST

Thanks very much, just what I need. Now that I have the action installed, how do I combine this with my \_DIRECTORY action?

---

<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: [October 13, 2009, 4:57am UTC](https://community.mp3tag.de/t/change-bartok-bela-to-bartok-bela-loose-the-special-chars/9129/4 "2009-10-13T04:57:52Z")

</div>

> [@MrRalph](#):
>
> Thanks very much, just what I need. Now that I have the action installed, how do I combine this with my \_DIRECTORY action?

A possible way is described as following ... for example you want to apply the Action Group "UniToAsc.Diacritics" on some tag field ...

1. Run an Action Group which sets the UNI\_TO\_ASC working tag field to the value of your involved tag field \_DIRECTORY.

2. Run the Action Group "UniToAsc.Diacritics".

3. Run an Action Group, which sets your tag field \_DIRECTORY to the value of the UNI\_TO\_ASC working tag field and afterwards removes the UNI\_TO\_ASC working tag field.

So you will have three Action Groups ...

1. 

Begin Action Group **UniToAsc.Get.\_DIRECTORY**  
Action #1  
_Actiontype 5:_ **Format tag field**  
_Field:_ **UNI\_TO\_ASC**  
_Formatstring:_ **%\_DIRECTORY%**  
End Action Group **UniToAsc.Get.\_DIRECTORY** (1 Action)

1. 

Begin Action Group **UniToAsc.Diacritics**  
Action #1  
...  
Action #54  
End Action Group **UniToAsc.Diacritics** (54 Actions)

1. 

Begin Action Group **UniToAsc.set.\_DIRECTORY**  
Action #1  
_Actiontype 5:_ **Format tag field**  
_Field:_ **\_DIRECTORY**  
_Formatstring:_ **%UNI\_TO\_ASC%**

Action #2  
_Actiontype 9:_ **Remove fields**  
_Fields to remove (semicolon separated):_ **UNI\_TO\_ASC**  
End Action Group **UniToAsc.set.\_DIRECTORY** (2 Actions)

For repeated using ...

In the Action Group dialog list view toggle these groups to ON state and save this selection using the "Utils" menu to a group selection file.

UniToAsc.Get.\_DIRECTORY  
 UniToAsc.Diacritics  
 UniToAsc.Set.\_DIRECTORY

Afterwards you are able to toggle your set of Action Groups as you need it by choosing the group selection file from the Utils menu.

DD.20091013.0907.CEST

---

<div class="post-metadata">

### Author: ![prorokrak](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/e47c2d/32.png) [@prorokrak](https://community.mp3tag.de/u/prorokrak)
#### Post date: [March 21, 2012, 1:15pm UTC](https://community.mp3tag.de/t/change-bartok-bela-to-bartok-bela-loose-the-special-chars/9129/5 "2012-03-21T13:15:37Z")

</div>

> [@DetlevD](#):
>
> 1. Run an Action Group which sets the UNI\_TO\_ASC working tag field to the value of your involved tag field \_DIRECTORY.
> 
> 2. 
> 
> Begin Action Group **UniToAsc.Get.\_DIRECTORY**  
> Action #1  
> _Actiontype 5:_ **Format tag field**  
> _Field:_ **UNI\_TO\_ASC**  
> _Formatstring:_ **%\_DIRECTORY%**  
> End Action Group **UniToAsc.Get.\_DIRECTORY** (1 Action)

Hi, is this still possible in v2.50? I can't see the option Format tag field in 'Select action type' dialog box.

---

<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 21, 2012, 6:28pm UTC](https://community.mp3tag.de/t/change-bartok-bela-to-bartok-bela-loose-the-special-chars/9129/6 "2012-03-21T18:28:50Z")

</div>

> [@Prorok Rak](#):
>
> Hi, is this still possible in v2.50? I can't see the option Format tag field in 'Select action type' dialog box.

Hmm ... yes ... 'Format tag field' should correctly be named and spelled as ' **Format value**' when using the english version of Mp3tag.

DD.20120321.2032.CET

---

<div class="post-metadata">

### Author: ![BobVal](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/c2a13f/32.png) [@BobVal](https://community.mp3tag.de/u/BobVal)
#### Post date: [March 3, 2018, 12:56am UTC](https://community.mp3tag.de/t/change-bartok-bela-to-bartok-bela-loose-the-special-chars/9129/7 "2018-03-03T00:56:49Z")

</div>

> [@DetlevD](#):
>
> UniToAsc.Diacritics

Sorry - I'm 67 and must be missing something.

I am trying to remove accents ( Reggaetón Lento ) from file names using MP3 tag.

I've tried to do this using the above example and just can't get it to work.

Normally I used the Tag to filename button and this setup: $validate($num(%track%, 2) - %title%,)

That produces this ( 08 - Reggaetón Lento.mp3 )  
And I need it to be ( 08 - Reggaeton Lento.mp3 )

Any help Please

NOTE: I have this B4A (Basic for Android) function that does what I want in. Is there someway I can call this code?

Sub RemoveAccents(s As String) As String  
Dim normalizer As JavaObject  
normalizer.InitializeStatic("java.text.Normalizer")  
Dim n As String = normalizer.RunMethod("normalize", Array As Object(s, "NFD"))  
Dim sb As StringBuilder  
sb.Initialize  
For i = 0 To n.Length - 1  
If Regex.IsMatch("\p{InCombiningDiacriticalMarks}", n.CharAt(i)) = False Then  
sb.Append(n.CharAt(i))  
End If  
Next

Return sb.ToString  
End Sub

BobVal

---

<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: [March 3, 2018, 9:14am UTC](https://community.mp3tag.de/t/change-bartok-bela-to-bartok-bela-loose-the-special-chars/9129/8 "2018-03-03T09:14:54Z")

</div>

see this post by @DetlevD

> [@Unicode to ASCII](https://community.mp3tag.de/t/unicode-to-ascii/7279):
>
> I have created six actionsgroups for the purpose of transcoding UTF-8 Unicode characters into 7-bit ASCII characters (see attached MTA files). Each group of actions encloses a special set of Unicode characters, so that you are free to combine what replacement presentation you need. The transcoding scheme is derived from the script 'uni2ascii.c', version 2008-08-30T20:27:37, by William J. Poser (billposer@alum.mit.edu), including some small changes by me. I do not know if the MTA files will do…

and download the action scripts there and execute them

---

<div class="post-metadata">

### Author: ![BobVal](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/c2a13f/32.png) [@BobVal](https://community.mp3tag.de/u/BobVal)
#### Post date: [March 3, 2018, 4:14pm UTC](https://community.mp3tag.de/t/change-bartok-bela-to-bartok-bela-loose-the-special-chars/9129/9 "2018-03-03T16:14:18Z")

</div>

Couldn't get them to work.

Easier to write a small program and rename the files without accents as filenames.

Sure seems like there should be an easy way for MP3Tag to make filenames without Accents. Some Windows programs wont work with the files.

Thanks anyway

---

<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: [March 3, 2018, 4:22pm UTC](https://community.mp3tag.de/t/change-bartok-bela-to-bartok-bela-loose-the-special-chars/9129/10 "2018-03-03T16:22:15Z")

</div>

> [@BobVal](#):
>
> Couldn't get them to work.

As you do not tell us what you tried, it is hard to to think of a way out of it.  
The easy way is there in the shape of the mentioned actions.  
The Windows file system uses UTF8 characters so any program that runs under windows should be able to read these characters. And that is why the $validate() function does not remove them.  
Which Windows do you use?

---

<div class="post-metadata">

### Author: ![BobVal](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/c2a13f/32.png) [@BobVal](https://community.mp3tag.de/u/BobVal)
#### Post date: [March 3, 2018, 4:46pm UTC](https://community.mp3tag.de/t/change-bartok-bela-to-bartok-bela-loose-the-special-chars/9129/11 "2018-03-03T16:46:44Z")

</div>

Windows 10. Have an old program that is not Unicode and the mGB-\>RenderFile(T2W(pszFileName), NULL) does not seem to like Accents or "¿"

But not to worry - replacing this program

Thanks for your time

---

<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 3, 2018, 5:18pm UTC](https://community.mp3tag.de/t/change-bartok-bela-to-bartok-bela-loose-the-special-chars/9129/12 "2018-03-03T17:18:56Z")

</div>

> [@](#):
>
> ... I am trying to remove accents ( Reggaetón Lento ) from file names using MP3 tag. ...

Search there ...  
[https://www.google.de/search?q=regex+character+equivalents&oq=Character%2BEquivalents](https://www.google.de/search?q=regex+character+equivalents&oq=Character%2BEquivalents)

At first try out this regular expression to see what happens:  
$regexp('o, ó, ò and ô','[[=o=]]','o')  
... which gives the result ...  
'o, o, o and o'

For your testcase you may apply such regular expression ...  
$regexp(%TITLE%,'[[=o=]]','o')

DD.20180303.1818.CET

---

<div class="post-metadata">

### Author: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [February 9, 2026, 12:21pm UTC](https://community.mp3tag.de/t/change-bartok-bela-to-bartok-bela-loose-the-special-chars/9129/13 "2026-02-09T12:21:51Z")

</div>


