Database manipulation help please
Posted: 12 May 2008 02:48 AM   [ Ignore ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1644
Joined  05-13-2004

so I noticed some time ago that my database was encoded as latin1_swedish_ci when it should be in utf8. I found this site detailing converting a database to utf8. I did it a little different in that I downloaded the export file from phpmyadmin to my hard drive and then did a search and replace with my text editor.

I then created a new database, uploaded and imported the modified file. Everything is looking good, when I change config.php all my entries show up and EE runs fine. However when I look at the database in phpmyadmin one setting at the bottom of the page is still latin1_swedish_ci

my host wasn’t particularly helpful (or maybe I didn’t understand their response) and I don’t know how to go about fixing this so that the entire database is in utf8. The response I got from the host is below.

Since the new mySQL version you can etc your own char encoding within the PHP code on how to write it/read it.

Unfortunately we can’t simply change the entire DB settings for just one database, as it will damage others, but you can individually set your own settings within each table for whatever encoding, since mySQL 4.1

I’ve attached a screenshot of the database with the section highlighted - the tables you see there are from a script that I’ve since deleted, but haven’t removed from the database, higher up are the EE tables.

any and all help is greatly appreciated.

Image Attachments
database encoding.JPG
Click thumbnail to see full-size image
 Signature 

CreateSean - My journey to pro web designer
currently improving my CSS, XHTML, JQuery & photoshop kung fu skills
I am the poster formally known as The Linguist.

Profile
 
 
Posted: 02 June 2008 02:33 PM   [ Ignore ]   [ # 1 ]  
Lab Assistant
RankRank
Total Posts:  131
Joined  04-02-2006

The hosting company rep. is saying that *default* encoding for the shared server’s data-
base is set to latin1, and he can’t change this because it would affect other users,
but it doesn’t matter that the *default* encoding for the database is latin1
because you can set a different encoding, e.g. utf8, for *tables* in the database.

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 65087 Total Logged-in Users: 40
Total Topics: 82227 Total Anonymous Users: 22
Total Replies: 441925 Total Guests: 222
Total Posts: 524152    
Members ( View Memberlist )