Imago wrote:
As I expected, the script does NOT convert cp1251 text to utf8. Instead, it managed to ruin 120,000 entries in a Russian encyclopedia. They simply disappeared - ALL of them. So guys, if your language is not English, DO NOT use that killer script.
You should be a little bit more careful in your postings. The thread reads: M
igrating from latin1_swedish_ci to utf8_general_ci database The script does this excellent.
Next I just changed the collation of a default Joomla site from utf8_general_ci into cp1251_ukrainian_ci without a hick. examples of the output:
ALTER DATABASE joomad1_jo151 COLLATE cp1251_ukrainian_ci ... OK
ALTER TABLE jos_banner COLLATE cp1251_ukrainian_ci ... OK
ALTER TABLE jos_banner MODIFY type varchar(30) CHARACTER SET binary ... OK
ALTER TABLE jos_banner MODIFY type varchar(30) COLLATE cp1251_ukrainian_ci DEFAULT 'banner' ... OK
ALTER TABLE jos_banner MODIFY name varchar(255) CHARACTER SET binary ... OK
ALTER TABLE jos_banner MODIFY name varchar(255) COLLATE cp1251_ukrainian_ci ... OK
ALTER TABLE jos_banner MODIFY alias varchar(255) CHARACTER SET binary ... OK
ALTER TABLE jos_banner MODIFY alias varchar(255) COLLATE cp1251_ukrainian_ci ... OK
ALTER TABLE jos_banner MODIFY imageurl varchar(100) CHARACTER SET binary ... OK
ALTER TABLE jos_banner MODIFY imageurl varchar(100) COLLATE cp1251_ukrainian_ci ... OK
ALTER TABLE jos_banner MODIFY clickurl varchar(200) CHARACTER SET binary ... OK
ALTER TABLE jos_banner MODIFY clickurl varchar(200) COLLATE cp1251_ukrainian_ci ... OK
ALTER TABLE jos_banner MODIFY editor varchar(50) CHARACTER SET binary ... OK
ALTER TABLE jos_banner MODIFY editor varchar(50) COLLATE cp1251_ukrainian_ci ... OK
ALTER TABLE jos_banner MODIFY custombannercode text CHARACTER SET binary ... OK
ALTER TABLE jos_banner MODIFY custombannercode text COLLATE cp1251_ukrainian_ci ... OK
ALTER TABLE jos_banner MODIFY description text CHARACTER SET binary ... OK
ALTER TABLE jos_banner MODIFY description text COLLATE cp1251_ukrainian_ci ... OK
ALTER TABLE jos_banner MODIFY tags text CHARACTER SET binary ... OK
ALTER TABLE jos_banner MODIFY tags text COLLATE cp1251_ukrainian_ci ... OK
ALTER TABLE jos_banner MODIFY params text CHARACTER SET binary ... OK
ALTER TABLE jos_banner MODIFY params text COLLATE cp1251_ukrainian_ci ... OKproof of success is attached.
Also I can show you sites which are in German (no English) which is a language that has very special characters where this script runs very well. It also works well with Greek amongst others........Do not generalize all issues.......The script is a fabulous piece of code for the task.
You can find a specific non Joomla script which works also very, very well (and we use that for non-joomla sites where we run into issues with character sets:
http://bogdan.org.ua/2008/02/08/convert ... other.htmlWhere it wont work (Chinese most likely and Japanese as Sam mentioned yes we do it manually in the way you described. In most cases not needed though....
Positivism is a virtue and the opposite is destructionCheers
Leo
Attachment:
coll1.jpg