Is there a reason why this format:
TITLE: PRIDE Nostalgia: Fedor Emelianenko AUTHOR: Leland Roling DATE: 1/9/2009 9:44:00 PM
CATEGORY: Fedor Emelianenko
BODY:
A lot of fans really get angry about PRIDE vs. UFC talk, and it has drawn a line in the fanbase at times… but looking back at some of the great battles from PRIDE when these guys were all younger, brings back some great memories.
Wouldn’t import?
I am simply trying to import a .txt file, and it’s just saying it’s importing, then it’s done, and nothing is in my dashboard whatsoever. What am I missing?
Reported on Movable Type 4.2

TITLE: PRIDE Nostalgia: Fedor Emelianenko
AUTHOR: Leland Roling
DATE: 1/9/2009 9:44:00 PM
CATEGORY: Fedor Emelianenko
-----
BODY:
A lot of fans really get angry about PRIDE vs. UFC talk, and it has drawn a line in the fanbase at times... but looking back at some of the great battles from PRIDE when these guys were all younger, brings back some great memories.
-----
--------
Here's what it actually looks like, Editor ate it up.
It's gotta be an encoding issue. I just imported this one too into sockfish (development branch of the next version of Movable Type). Try this: http://www.codemonkeyramblings.com/sockfish/import/test2.txt
Thanks a lot for sticking with my pains, Mike.
That test2.txt actually worked. So, my question is as to what I should be encoding? All of the text in the file? And what should I be encoding this to, Unicode?
It may also be a matter of end-of-line characters. Windows does not terminate lines the same way that Unix systems do. It's very common for people to have to run Windows text files through "dos2unix" on a Unix machine to make it really readable on Unix.
Mike, I'm not trying to make it readable on Unix. I'm running MT on my localhost, IIS 7, Vista.
That doesn't mean that Perl isn't assuming that formatting. Compare your file to mine, and make sure that your file follows the same rules as mine since it seemed to work for you.
When I get home this evening, I will actually type up the same file in Notepad, and see what happens. If that's the case, it's definitely an encoding issue of some sort.
When I open the test file on Windows, Notepad just runs all the lines together, yet it still works. This is rather frustrating...
Lemme ask this...
The line terminator, I simply "AppendLine" in my .NET application, so I'm assuming that this likely isn't doing to correct termination.
I should be using \n but in my code, it'll write that literally to the file, so I'll have -----\n actually written in the file if I do so. I'm assuming I need to do some sort of encoding for the writer to recognize \n and break the line?
I've only done some hobby work in .NET, but the StreamWriters should have something that lets you do this:
stream.Write("{1}\n", lineString);
I'll try that, but I've also been looking at the Environment Namespace and there is a way to add Carriage Returns to lines, so I'll try that as well.
Mike,
I was able to add Carriage Returns to the end of my lines, no difference. What I did do however was take your copies of your test files and simply copy and paste them to a new file, and then they suddenly didn't work, making me believe this is once again an Encoding problem.
What am I supposed to be encoding this as? Notepad seems to be bad idea in opening a file, then saving it.
Also, Mike...
From what I read, there cannot be any HTML tags or anything in the BODY? Is that true? So if I'm importing any formatting for my content, basically, it's stripped away?
Mike, I need an answer to my HTML tag question... but...
I GOT IT!
Your suggestion about putting it into UNIX format worked.
Notepad++ has an option in a dropdown menu to Convert to UNIX format, once I did that, worked perfectly.
That should work. MT generates my exports with HTML in them because there are plenty of cases where I put my own HTML in there for things like Paypal forms.
Thanks for all your help.