comment titles conversion error

Yuryu

Joined: 2004-11-22
Posts: 6
Posted: Sun, 2005-11-20 05:24

Hello

I've done migration of G1 to G2 on my gallery. Most of the items are
converted successfully, but comment titles are not displeyed properly.

I think they are not displeyed with correct charset.
What should I do?


G2 URL (optional): http://www.wotax.net/simcity/gallery/
G2 version: 2.0.1, core 1.0.0.1
G1 URL (optional): deleted
G1 version: 1.5.1
G1 character set: euc-jp
PHP memory limit: 8M
--
Gallery version = 2.0.1 core 1.0.0.1
PHP version = 5.0.5 apache2handler
web server = Apache/2.0.55 (Unix) mod_ssl/2.0.55 OpenSSL/0.9.7d-p1 DAV/2 SVN/1.2.3 PHP/5.0.5
database = mysql 4.1.12-standard
toolkits = ArchiveUpload, Exif, ImageMagick, NetPBM
OS = FreeBSD yorozuya.ddo.jp 4.11-RELEASE-p13 FreeBSD 4.11-RELEASE-p13 #0: Th i386
browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051111 Firefox/1.5
(e.g. Firefox 1.0):

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-11-20 14:59

your gallery/ url returns a FORBIDDEN error.

@charset: when migrating form g1 to g2, you can select the charset.

 
joe7rocks
joe7rocks's picture

Joined: 2004-10-07
Posts: 560
Posted: Sun, 2005-11-20 15:26

valiant:try http://www.wotax.net/simcity/gallery/main.php instead
1..the page is all greek to me ;)
2.Yuryu: if you have problems with the _title_, i guess that is read from the filename, which is sure to be in englishletters. So i guess that is why..
you could select where to fill the title from on migration.

Edit: sorry i just got you..'comment titles'.
those question marks here i guess..
http://www.wotax.net/simcity/gallery/v/sc4rh23/215_3_271130499972_001.jpg.html

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-11-20 16:17

can you try the following:

in modules/migrate/ConfirmImport.inc

replace:

					$comment->setSubject($importComment->name);

with

					$comment->setSubject(GalleryCoreApi::convertToUtf8($importComment->name, $sourceEncoding));

then reimport the album that has such comments. if it's fixed, you'll have to reimport everything (best start with a clean / empty G2).

please let us know... thanks.

 
Yuryu

Joined: 2004-11-22
Posts: 6
Posted: Mon, 2005-11-21 04:16

valiant:
Thanks!
That code worked for me.
I don't want to clean G2 because some images are already added after the migration so
I simply removed albums and reimported them.

--
that url w/o main.php is now working however last night it was not working.
I changed none of the settings though...

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-11-21 12:20

Yuryu

thanks for reporting. it's fixed now in cvs.