Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-01-10 10:24:51

gemal
Member
From: Copenhagen, Denmark
Registered: 2007-01-09
Posts: 107
Website

Import from Movable type cuts off text after intl chars

If you have a movable type posting with a danish char the posting is imported with text up untill the danish char. So if you posting has this text:
“bla bla bla æ bla bla”
the imported posting becomes:
“bla bla bla “

using textpattern movable type import version 4.0.4

the problem is seen both in the title and the body

To reproduce:

save the following into a textfile called import.txt and try to import a movable type file

————
AUTHOR: gemal
TITLE: test of æ test
STATUS: Publish
ALLOW COMMENTS: 1
CONVERT BREAKS: default
ALLOW PINGS: 0
PRIMARY CATEGORY: Test
CATEGORY: Test

DATE: 01/21/2004 01:18:35 AM
——-
BODY:
test æ test
——-
EXTENDED BODY:

——-
EXCERPT:

——-
KEYWORDS:

——-

Last edited by gemal (2007-01-10 10:27:12)

Offline

#2 2007-01-10 21:38:44

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Import from Movable type cuts off text after intl chars

Excellent, thanks for the helpful bug report.

Do you happen to know what character set MT uses when exporting international characters? The export spec doesn’t say.


Alex

Offline

#3 2007-01-10 23:44:28

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Import from Movable type cuts off text after intl chars

The example posted above works fine for me.

Could it be that the file you’re importing is encoded differently? Anything you post on the forum here will be converted to utf8.


Alex

Offline

#4 2007-01-11 09:07:28

gemal
Member
From: Copenhagen, Denmark
Registered: 2007-01-09
Posts: 107
Website

Re: Import from Movable type cuts off text after intl chars

zem wrote:

The example posted above works fine for me. Could it be that the file you’re importing is encoded differently? Anything you post on the forum here will be converted to utf8.

Are you sure that it imported correct? Is the title of the imported entry “test of æ test” or just “test of “

I can zip up the entry and send it to you. Would that help?

Offline

#5 2007-01-11 21:19:08

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Import from Movable type cuts off text after intl chars

Are you sure that it imported correct? Is the title of the imported entry “test of æ test” or just “test of “

Yes.

I can zip up the entry and send it to you. Would that help?

It would, thanks. You can email it to support @ my web site domain.


Alex

Offline

#6 2007-03-02 09:15:09

gemal
Member
From: Copenhagen, Denmark
Registered: 2007-01-09
Posts: 107
Website

Re: Import from Movable type cuts off text after intl chars

Tried the new import_mt.php file and I got:

Notice: Array to string conversion in blabla/textpattern/include/import/import_mt.php on line 185

Offline

Board footer

Powered by FluxBB