WordPress.org

Ready to get started?Download WordPress

Forums

Moving from Movable Type to WordPress problems (6 posts)

  1. shogunn
    Member
    Posted 6 years ago #

    Hi,

    I am trying to import entries from a MT blogg to WordPress. I have two problems:

    1) My blogg is in Icelandic and all the characters get scrambled ("?ri?judagskv?ldi?" in stead of "Þriðjudagskvöld".

    Encoding for pages and feeds are "UTF-8"

    2) The Dates in all my imported files are set to "December 31st, 1969". Can Worpress not import correct dates???

    Thanks

  2. shogunn
    Member
    Posted 6 years ago #

    Can someone help me with this please?

  3. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    The Movable Type importer may not be fully up-to-date with the latest version of Movable Type, probably because nobody really uses MT that I know of. So the importer doesn't get a lot of use anymore.

    If you have an mt-export.txt file that you can post somewhere so we can look at it, we can try to tell you how to correct the MT importer. As well as possibly fix it for everybody else in future revisions of WordPress.

  4. shogunn
    Member
    Posted 6 years ago #

    Problem 1 - almost fixed
    I almost fixed problem 1 myself.
    The solution:
    a) Open the mt export.txt file in Wordpad.
    b) Copy all the text into a new Notepad text document.
    c) Save the Notepad text document using "save-as" and selecting Encoding: UTF-8 in the "save-as" menu.

    The result:
    All my imported posts now have the right Icelandic characters.

    Cannot create Icelandic authors!
    The only problem is I cannot create an author with Icelandic characters. The author "Sigurður" becomes "Sigurur"

    Can someone tell me why?

    Problem 2 - Dates are still wrong.
    Dates in the export file are in Icelandic format:

    Example 1:
    DATE: 09/02/2001 06:34:00 FH
    (In English: September 2nd 2001 06:34:00 AM)

    Example 2:
    DATE: 07/28/2003 12:24:23 EH
    (In English: July 28th 2003 12:24:23 PM)

    (EH = PM; FH = AM)

    Example of exported file can be found here:
    http://www.skodun.org/uploads/mt_export.txt

  5. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    Looking at the MT importer, to get the datetime it just passes the datetime value through to PHP's strtotime() function, and it may not be capable of dealing with the FH and EH.

    Why not search/replace through the export file to make it use AM and PM instead? Then the time might be imported correctly.

  6. shogunn
    Member
    Posted 6 years ago #

    Why not search/replace through the export file to make it use AM and PM instead? Then the time might be imported correctly.

    That worked!

    I also solved the "Icelandic author" problem. I just created an "user" with no Icelandic characters and then used the "name" tag to publish the Icelandic name.

Topic Closed

This topic has been closed to new replies.

About this Topic