migrating from G1 to G2 and Cyrillic characters
|Posted: Sat, 2004-07-10 02:12|
I am migrating from G 1.4.1 to G2 (current) and try to import my G1 albums with cyrillic letters in comments, descriptions and title.
In import dialog, I see what is on import-1.png. I was able to fix these letters to normal ones by calling iconv() function in Gallery1DataParser::loadFile() and converting from KOI8-R (G1 default Russian codepage) to Windows-1251 (alternative Russian codepage). One more operation of converting $album->fields['title'] and $album->fields['description'] in Gallery1DataParser::loadAlbumFields() from Windows-1251 to UTF-8 was needed in order to get normal letters.
After that fix, it started to display stuff normally, as on import-2.png.
However, after import operation, the album name is still screwed up, as on import-3.png. Even if I revert my changes, almost none changes (see import-4.png).
So question is how to import the albums, photos and comments correctly? In which codepage should be these in order to satisfy Migrate Modules? Any help would be greatly appreciated.
(4-th attachment in next post).