# Feature Request: Unicode Support for Export to Batch Files

**URL:** https://community.mp3tag.de/t/feature-request-unicode-support-for-export-to-batch-files/7321
**Category:** Support
**Created:** [October 12, 2008, 9:56pm UTC](https://community.mp3tag.de/t/feature-request-unicode-support-for-export-to-batch-files/7321 "2008-10-12T21:56:46Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![Moonbase](https://community.mp3tag.de/user_avatar/community.mp3tag.de/moonbase/32/207_2.png) [@Moonbase](https://community.mp3tag.de/u/Moonbase)
#### Post date: [October 12, 2008, 9:56pm UTC](https://community.mp3tag.de/t/feature-request-unicode-support-for-export-to-batch-files/7321/1 "2008-10-12T21:56:46Z")

</div>

Could we please have a $filename("path",unicode) export encoding?

When creating Batch Files, neither _ansi_ nor _utf-8_ or _utf-16_ work when exporting a file path, like in:

```
$filename("test.bat")$loop(%_path%)echo "%_path%"
$loopend()

```

For a real path of  
**M:\MP3\Tagged\Köllen, Achim\Köllen, Achim - Eine ganze Nacht mal (nicht vernünftig sein).mp3**  
this will display  
**M:\MP3\Tagged\K÷llen, Achim\K÷llen, Achim - Eine ganze Nacht mal (nicht vern³nftig sein).mp3**  
instead.

Even worse (because »č« isn’t in the ANSI character set for Germany (CP-1252)):  
The real file path  
**M:\MP3\Tagged\Robič, Ivo\Robič, Ivo - Mit 17 fängt das Leben erst an.mp3**  
becomes  
**M:\MP3\Tagged\Robic, Ivo\Robic, Ivo - Mit 17 fängt das Leben erst an.mp3**  
in the export file, which in turn will display  
**M:\MP3\Tagged\Robic, Ivo\Robic, Ivo - Mit 17 fõngt das Leben erst an.mp3**  
in the »DOS Box«!

Of course this is due to the ANSI character set not being translated into the OEM character set needed by DOS Batch Files. One _could_ now try to convert into the OEM character set (which will fail for example 2), but why not use the command processor’s ability to handle what they call »Unicode«?

I believe this to be actually a UTF-16 LE (no BOM) format, but I’m not 100% certain.

So I kindly ask if we could please have something that will write out in a (Unicode) format compatible to the system’s batch file processor?

Sometimes it seems unavoidable to come up with fancy workarounds for some things—in this case, a function like this would be a great help! ([See an example here.](https://community.mp3tag.de/t/7313/3))

---

_[View the full topic](https://community.mp3tag.de/t/feature-request-unicode-support-for-export-to-batch-files/7321)._
