Bad encoding when importing from G1

JackC

Joined: 2005-08-18
Posts: 7
Posted: Thu, 2005-08-18 16:58

Hello.

I have a problem with import from G1 to G2. After import i see broken localized strings in titles and descriptions. Source encoding is cs_CZ 8859-2 but I tested some others too (1250, UTF, ...).

Do you have some idea how can I fix it? Thx.

My Gallery is yesterday's CVS, G1 is v1.5. System is Debian Sarge 3.1. Apache 2.0.54-4, PHP 4.3.10-15 and mysql 4.1.11a-4.

jackc-at-teptin-dot-net, uin 23487453

 
JackC

Joined: 2005-08-18
Posts: 7
Posted: Thu, 2005-08-18 17:55

Same problem on other system, same versions of Gallery, but Debian SID (unstable), Apache 1.3.33-7, PHP 4.4.0-1, mysql 4.0.24-10.

Tested in Firefox 1.06 and Opera 8.x.

Example of result: Kulturní dům a přilehlé Loštice

 
jmullan
jmullan's picture

Joined: 2002-07-28
Posts: 974
Posted: Thu, 2005-08-18 18:24

Could you provide links to your G1 and G2 for me? These problems are best diagnosed by looking at the pages. Also, do you know if you have iconv, mb_string, or recode in your php?

 
JackC

Joined: 2005-08-18
Posts: 7
Posted: Thu, 2005-08-18 21:42

so i had a two problems:

1. some text was encoded in win1250, i dont know why, maybe some upload from Remote Gallery on other computer

2. there was an entities instead of localized characters - resolution is migration with "raw html" marking

thx to jmullan and mindless for their support :)

 
JackC

Joined: 2005-08-18
Posts: 7
Posted: Fri, 2005-08-19 10:13

btw after migration you must stay with "raw html" marking, because G2 can't convert html (include entities) to text :/