Quantcast
Channel: Installing and upgrading help
Viewing all articles
Browse latest Browse all 46762

Re: I am so stuck on my UTF-8 problem....

$
0
0
by Richard Kingsley.  

Thanks so much for your help. 

Rather than typing in multiple queries which would have taken days  for 730 columns.  I used the data provided by the search query in phpmyadmin in print view and plugged it into an excel file (using paste special - Unicode). 

I removed the columns of data that were not needed and added the instructions in the required columns (copying the same instruction vertically downwards for as many rows as needed).   I used a concatenate function in excel to generate 730 instructions.  I cut and paste all 730 instructions back into phpmyadmin.  It took less than 30 minutes to do the prep work.

Here is a sample function in excel to do this: =CONCATENATE(A1,"",B1,"",C1,"",D1,"",E1,"",F1)

Here is a sample excel table so you can see how it works.  I typed the above function into the last column (column G).   I copied the concatenate function into all the required rows in column G.   What you actually see in column G is the generated response, the instruction required.  I then copied column G back into the database query window.

ALTER TABLEmdl_assignmentMODIFYnamevarchar(255)CHARACTER SET utf8 COLLATE utf8_unicode_ci;ALTER TABLE mdl_assignment MODIFY name   varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci;
ALTER TABLEmdl_assignmentMODIFYintrotextCHARACTER SET utf8 COLLATE utf8_unicode_ci;ALTER TABLE mdl_assignment MODIFY intro text CHARACTER SET utf8 COLLATE   utf8_unicode_ci;
ALTER TABLEmdl_assignmentMODIFYassignmenttypevarchar(50)CHARACTER SET utf8 COLLATE utf8_unicode_ci;ALTER TABLE mdl_assignment MODIFY assignmenttype varchar(50) CHARACTER   SET utf8 COLLATE utf8_unicode_ci;
ALTER TABLEmdl_assignment_submissionsMODIFYdata1textCHARACTER SET utf8 COLLATE utf8_unicode_ci;ALTER TABLE mdl_assignment_submissions MODIFY data1 text CHARACTER SET   utf8 COLLATE utf8_unicode_ci;

I also did a similar thing to ensure the table collations were correct as well.  I hope this helps someone else.


Viewing all articles
Browse latest Browse all 46762

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>