Hello,
I have a forum with Win1251 forum encoding and latin1_swedish_ci collation database.
Can you please outline step by step instructions here?
I am a bit lost with so many posts a few mentioned scripts.
First I will need to make a backup and export my database as SQL file and then run your script from command line?
Also could you please comment about these parameters?
Note two important issues:
- the "set names" command to the old encoding to read correctly from the database and
-the "_utf8" modifier before the utf8 string at the UPDATE command to write to the database. without it, the script did NOT work. how?
$old_char_set = "iso-8859-7"; In my case it will be Win1251?
$alter_database=false; // if true,database and its tables (structure) will be converted to utf8 as well. NOTE: May alter length/type of some fields Should this be set to true?
$autodetect_encodings="ISO-8859-7,UTF-8"; In my case Win1251, UTF-8?
Has anyone tried this script yet?
May it be that if I put it in config file and upgrade from 2.x to 3.x it will convert the database content to UTF-8 and the forum with UTF-8 encoding will start working just fine without running above script?