# import from .txt file

**URL:** https://community.mp3tag.de/t/import-from-txt-file/13450
**Category:** Support
**Created:** [May 18, 2012, 9:18pm UTC](https://community.mp3tag.de/t/import-from-txt-file/13450 "2012-05-18T21:18:03Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Stain](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/c89c15/32.png) [@Stain](https://community.mp3tag.de/u/Stain)
#### Post date: [May 18, 2012, 9:18pm UTC](https://community.mp3tag.de/t/import-from-txt-file/13450/1 "2012-05-18T21:18:03Z")

</div>

I'm attempting to import numerous artist and title info from an ANSI coded .txt file. Each line is separated using the 'Enter' button... Line 1 parses fine, every other line does not.

what am i doing wrong?

---

<div class="post-metadata">

### Author: ![Vengefulbit](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/v/c2a13f/32.png) [@Vengefulbit](https://community.mp3tag.de/u/Vengefulbit)
#### Post date: [May 18, 2012, 11:27pm UTC](https://community.mp3tag.de/t/import-from-txt-file/13450/2 "2012-05-18T23:27:18Z")

</div>

Remove the extra return. It goes by each line. It will think the returns are the data and it will cause problems.

Track: 1 - 1  
Track: 2 - return  
Track: 3 - 2  
Track: 4 - return  
Track: 5 - 3  
Track: 6 - return  
Track: 7 - 4

And so on.

---

<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: [May 19, 2012, 3:44am UTC](https://community.mp3tag.de/t/import-from-txt-file/13450/3 "2012-05-19T03:44:58Z")

</div>

> [@Stain](#):
>
> I'm attempting to import numerous artist and title info from an ANSI coded .txt file. Each line is separated using the 'Enter' button... Line 1 parses fine, every other line does not. what am i doing wrong?

Please upload an example excerpt of the first two or three lines.

DD.20120519.0745.CEST

---

<div class="post-metadata">

### Author: ![Stain](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/c89c15/32.png) [@Stain](https://community.mp3tag.de/u/Stain)
#### Post date: [May 19, 2012, 10:22am UTC](https://community.mp3tag.de/t/import-from-txt-file/13450/4 "2012-05-19T10:22:33Z")

</div>

> [@DetlevD](#):
>
> Please upload an example excerpt of the first two or three lines.
> 
> DD.20120519.0745.CEST

as requested

[problem.txt](https://community.mp3tag.de/uploads/default/original/2X/0/0c6f2a965fcd40e4e456a36c0da089e9a7df6a18.txt) (249 Bytes)

---

<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: [May 19, 2012, 12:10pm UTC](https://community.mp3tag.de/t/import-from-txt-file/13450/5 "2012-05-19T12:10:53Z")

</div>

> [@Stain](#):
>
> as requested

I do see the following problem:  
The hypen is not the same if you compare line 1 with the rest.  
You will find this, if you replace blank-minus-black with a semicolon. THis will replace only the first line.  
And as the format string can only deal with one kind of separator, the lines that do not match do not get imported.

---

<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: [May 19, 2012, 2:18pm UTC](https://community.mp3tag.de/t/import-from-txt-file/13450/6 "2012-05-19T14:18:36Z")

</div>

At the first glance the sample text file looks good.  
Each line is delimited by a CR-LF sequence.  
Each line has the same field structure: Artist - Title (Comment)

But there is a quirk with the hyphens.  
The first line contains a normal hyphen-minus character (code number 45).  
Instead ot the hyphen-minus character the following lines contain a different character from the Windows 1252 codepage, which can be created by key combination [Alt+0150] via num pad, also known as the ndash character (german: Halbgeviertstrich).

Both characters have different size (45)|-|–|(150), but sometimes they look the same in another font (45)|-|–|(150)

I recommend to replace all the ndash characters in the input file with hyphen-minus characters.  
Then Mp3tag will import the data line by line without failure, using the mask:  
**%artist% - %title% (%comment%)**

See also:  
~~[http://www.cs.tut.fi/cgi-bin/run/~jkorpela/char.cgi?code=002d](http://www.cs.tut.fi/cgi-bin/run/~jkorpela/char.cgi?code=002d)~~  
~~[http://www.cs.tut.fi/cgi-bin/run/~jkorpela...r.cgi?code=0096](http://www.cs.tut.fi/cgi-bin/run/~jkorpela...r.cgi?code=0096)~~  
[http://www.eki.ee/letter/chardata.cgi?search=hyphen](http://www.eki.ee/letter/chardata.cgi?search=hyphen)  
[http://www.eki.ee/letter/chardata.cgi?search=en+dash](http://www.eki.ee/letter/chardata.cgi?search=en+dash)  
[http://www.cs.sfu.ca/~ggbaker/reference/characters/](http://www.cs.sfu.ca/~ggbaker/reference/characters/)  
[http://www.cs.tut.fi/~jkorpela/chars/index.html](http://www.cs.tut.fi/~jkorpela/chars/index.html)  
[http://www.cs.tut.fi/~jkorpela/dashes.html](http://www.cs.tut.fi/~jkorpela/dashes.html)  
[http://www.cs.tut.fi/~jkorpela/chars/spaces.html](http://www.cs.tut.fi/~jkorpela/chars/spaces.html)

DD.20120519.1818.CEST  
DD.20150104.1838.CET

---

<div class="post-metadata">

### Author: ![Stain](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/c89c15/32.png) [@Stain](https://community.mp3tag.de/u/Stain)
#### Post date: [May 20, 2012, 8:54pm UTC](https://community.mp3tag.de/t/import-from-txt-file/13450/7 "2012-05-20T20:54:00Z")

</div>

> [@DetlevD](#):
>
> At the first glance the sample text file looks good.  
> Each line is delimited by a CR-LF sequence.  
> Each line has the same field structure: Artist - Title (Comment)
> 
> But there is a quirk with the hyphens.  
> The first line contains a normal hyphen-minus character (code number 45).  
> Instead ot the hyphen-minus character the following lines contain a different character from the Windows 1252 codepage, which can be created by key combination [Alt+0150] via num pad, also known as the ndash character (german: Halbgeviertstrich).
> 
> Both characters have different size (45)|-|–|(150), but sometimes they look the same in another font (45)|-|–|(150)
> 
> I recommend to replace all the ndash characters in the input file with hyphen-minus characters.  
> Then Mp3tag will import the data line by line without failure, using the mask:  
> **%artist% - %title% (%comment%)**
> 
> See also:  
> [http://www.cs.tut.fi/cgi-bin/run/~jkorpela...r.cgi?code=002d](http://www.cs.tut.fi/cgi-bin/run/~jkorpela/char.cgi?code=002d)  
> [http://www.cs.tut.fi/cgi-bin/run/~jkorpela...r.cgi?code=0096](http://www.cs.tut.fi/cgi-bin/run/~jkorpela/char.cgi?code=0096)  
> [http://www.cs.sfu.ca/~ggbaker/reference/characters/](http://www.cs.sfu.ca/~ggbaker/reference/characters/)
> 
> DD.20120519.1818.CEST

awesome guys thank you very much!

as always your help is greatly appreciated

---

<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:23pm UTC](https://community.mp3tag.de/t/import-from-txt-file/13450/8 "2026-02-09T12:23:50Z")

</div>


