-
AuthorPosts
-
May 27, 2015 at 1:59 am #206662
I’ve installed the Bookshop theme, installed the Persian language pack, and changed the collation of my DB to
utf8_general_ci, but still when I try to type new content in the website and save it shows as ???jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
May 27, 2015 at 9:15 am #571938Hi there
Have you checked your table & fields charset ?Thank you,
Viet VuMay 27, 2015 at 10:10 pm #572063My collation is utf_general_ci, but I’m not
Sure how to check my charsetMay 27, 2015 at 10:10 pm #737103My collation is utf_general_ci, but I’m not
Sure how to check my charsetjooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
May 27, 2015 at 10:11 pm #572064Hi there
Please check into fields which one stored your data via phpmyadmin.Thank you,
Viet Vujooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
May 27, 2015 at 10:11 pm #737104Hi there
Please check into fields which one stored your data via phpmyadmin.Thank you,
Viet VuMay 28, 2015 at 11:35 am #572140I am sorry, but I didn’t understand what you meant by your last post.
I checked all the table collations and the collation is right.
Can I private message DB login for you to check?May 28, 2015 at 12:05 pm #572144<em>@jooservices 475359 wrote:</em><blockquote>Hi there
Please check into fields which one stored your data via phpmyadmin.Thank you,
Viet Vu</blockquote>I was able to fix it with running a script
<?php
$con = mysql_connect('localhost','user','password');
if(!$con) { echo "Cannot connect to the database ";die();}
mysql_select_db('dbname');
$result=mysql_query('show tables');
while($tables = mysql_fetch_array($result)) {
foreach ($tables as $key => $value) {
mysql_query("ALTER TABLE $value CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci");
}}
echo "The collation of your database has been successfully changed!";
?>jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
May 28, 2015 at 4:29 pm #572170Glad to hear that.
Thank you,
Viet Vu -
AuthorPosts
This topic contains 9 replies, has 2 voices, and was last updated by jooservices 9 years, 6 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum