views:

139

answers:

1

This could be a bit long, I'm not really sure what the problem is. I'm currently using an implementation of BlogEngine.NET as my blogging platform. I'm wanting to switch to MovableType to take advantage of their Community and Social blogging apparatus. The major "IF" in the equation is whether or not I'll be able to import my old posts to the new platform, so I'm trying to do so on a test project on the localhost (Vista, IIS7).

I have everything running smoothly, but I'm unable to import the posts. I wrote a .NET VB project that converts the BlogML output from BlogEngine.NET to the MovableType Import Format: http://www.sixapart.com/movabletype/docs/mtimport

Here's the rub, and here's some examples. For some reason, whether it be encoding or my line terminator, I can't import anything. I have been talking with a MovableType developer about this, but we haven't come up with a solution yet. My file looks almost exactly the same as his, and in fact, I have saved the EXAMPLE file from the IMPORT FORMAT documentation to my machine, and tried to import that to no avail. This makes me think it's an encoding problem or a Windows Line Terminator problem in which it isn't being formatted correctly.

http://www.codemonkeyramblings.com/sockfish/import/test2.txt <-- FILE WORKS

I'm not exactly sure why that file works, but if I copy the exact file from the IMPORT documentation and save it, that doesn't work. It's the same exact formatting.

In my .NET program, I'm using a StringBuilder, StreamWriter to a file. All I'm doing is hitting .AppendLine to go to the next line, but the documentation is talking about adding a '\n' to the end of those lines. Is this the problem? Can anyone give me any insight as to why I can't import?

A: 

It's probably a file encoding issue. Make sure that it's the same in both cases.

Mike Thomsen