# \[X\] Exporting NOT defaulting to UTF-8 when $filename() omitted

**URL:** https://community.mp3tag.de/t/x-exporting-not-defaulting-to-utf-8-when-filename-omitted/3989
**Category:** No Bugs
**Created:** [November 2, 2006, 1:53pm UTC](https://community.mp3tag.de/t/x-exporting-not-defaulting-to-utf-8-when-filename-omitted/3989 "2006-11-02T13:53:33Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Rasqual](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/a4c791/32.png) [@Rasqual](https://community.mp3tag.de/u/Rasqual)
#### Post date: [November 2, 2006, 1:53pm UTC](https://community.mp3tag.de/t/x-exporting-not-defaulting-to-utf-8-when-filename-omitted/3989/1 "2006-11-02T13:53:33Z")

</div>

Hello Florian,

> [@](#):
>
> **Write BOM**  
> Mp3tag exports data in Unicode format encoded as UTF-8 by default. This option enables writing of a Byte Order Marker which is required by some applications.

 

Files are encoded to UTF-8 by default (regardless of "BOM"—utf-8 signature— setting) **only if** stating  
$filename(_name_) while omitting the second parameter.  
If the $filename statement is not present, encoding defaults to the current ACP.

 

Example setup:  
$loop(%\_path%)%artist% %title  
%$loopend()  
=\> ANSI

 

$filename(txt)$loop(%\_path%)%artist% %title  
%$loopend()  
=\> UTF-8

 

$filename(,utf-8)$loop(%\_path%)%artist% %title  
%$loopend()  
=\> UTF-8

 

Reproduced in 2.36d and 2.36h, Japanese (CP932) system locale.

 

```
=======================================================================
=========
Mp3tag v2.36d - 02.11.2006 - 15:31:31
--------------------------------------------------------------------------------
OS-Version: Windows XP Service Pack 2 (Build 2600)
--------------------------------------------------------------------------------
Build: Jul 6 2006 21:53:47
--------------------------------------------------------------------------------
AppPath: 1.582.252.032 Bytes frei (C:\Program Files\Mp3tag\)
DataPath: 1.582.252.032 Bytes frei (C:\Documents and Settings\Rasqual\Application Data\Mp3tag\data\)
TempPath: 1.582.252.032 Bytes frei (C:\DOCUME~1\Rasqual\Temp\Mp3tag v2.36d\)
================================================================================

```

 

Regards,  
Rasqual

---

<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:17pm UTC](https://community.mp3tag.de/t/x-exporting-not-defaulting-to-utf-8-when-filename-omitted/3989/2 "2018-12-28T14:17:22Z")

</div>

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