I installed the Web 2.0 theme and for some reason, some of the characters (apostrophes, hyphens, quotation marks, etc.) are appearing as small boxes with question marks in them. I have checked in MySQL and the language setting is correct (utf8_general_ci). It appears that it's only happening with certain characters... but not ", but not ', etc. Any idea what I can do to fix this issue?
I'm using Zikula 1.2.7, MySQL 5.0.91-log, phpMyAdmin 2.8.0.1.
I'm going to wait until the stable version of 1.3.0 is released before upgrading further.
--
Christopher Pelletier
NorthumberlandView.ca
A View Like No Other
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- rgasch created topic »Using PageUtil::addVar() to load script code« 11:48 AM
- michiel responded to »password problem« 10:01 AM
- mazdev responded to »Hide "Register new account" and change template to 3 col« 07:50 AM
- mesteele101 created topic »Zikula 1.3.3 - Site Search 1.5.2 - Unable to turn off plug-ins« 07:48 AM
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Characters appearing incorrectly in Web 2.0 theme
-
- Rank: Softmore
- Registered: Jul 10, 2006
- Last visit: May 21, 2010
- Posts: 315
-
- Rank: Softmore
- Registered: Jul 10, 2006
- Last visit: May 21, 2010
- Posts: 315
-
- Rank: Softmore
- Registered: Jan 24, 2006
- Last visit: Apr 19, 2010
- Posts: 150
Hi, your DB uses UTF8, does this match the browser settings (Firefox: View->Character Encoding) and your page headers?
Code
meta charset="utf-8" -
- Rank: Softmore
- Registered: Jul 10, 2006
- Last visit: May 21, 2010
- Posts: 315
I checked Character Encoding and it's UTF-8. I also checked the page headers and it's UTF-8
--
Christopher Pelletier
NorthumberlandView.ca
A View Like No Other -
- Rank: Team Member
- Registered: Dec 17, 2009
- Last visit: Apr 06, 2010
- Posts: 61
-
- Rank: Softmore
- Registered: Jul 10, 2006
- Last visit: May 21, 2010
- Posts: 315
I checked and the characters are appearing correctly in the individual entries in phpMyAdmin. Under the Collation column, they all say "utf8_general_ci" but at the bottom where it shows the total number of tables and database size, it says "latin1_swedish_ci".
--
Christopher Pelletier
NorthumberlandView.ca
A View Like No Other -
- Rank: Team Member
- Registered: Dec 17, 2009
- Last visit: Apr 06, 2010
- Posts: 61
In phpMyAdmin, do this:
1) Select your database
2) Click on 'Operations' link at the top of the page
3) change latin1_swedish_ci to utf8_general_ci
4) press 'Go' to save the changes -
- Rank: Softmore
- Registered: Jul 10, 2006
- Last visit: May 21, 2010
- Posts: 315
Woo Hoo! It worked. Thanks for your help. I knew it was going to be something simple.
--
Christopher Pelletier
NorthumberlandView.ca
A View Like No Other -
- Rank: Softmore
- Registered: Jul 10, 2006
- Last visit: May 21, 2010
- Posts: 315
Oops... spoke too soon... Changed it to utf8_general_ci and the characters in PostCalender show up properly but now they aren't showing up properly in News.
Quotes show up as “ and ” and apostrophes show up as ’... I changed it to latin_general_ci and I'm back to where I started from but things are showing up correctly in News again. I tried changing it to latin_general_ci in the zk_postcalendar_events table but that didn't work.
Anyone have any other suggestions?
--
Christopher Pelletier
NorthumberlandView.ca
A View Like No Other -
- Rank: Team Member
- Registered: Sep 06, 2006
- Last visit: May 09, 2010
- Posts: 2446
I don't have a solution but be care swapping encodings,
I'm afraid that you can get corrupted data at the end :s
--
- Mateo T. -
Mis principios... son mis fines -
- Rank: Softmore
- Registered: Jul 10, 2006
- Last visit: May 21, 2010
- Posts: 315
I double checked after I did it and everything's fine (relatively speaking). I'll keep looking.
--
Christopher Pelletier
NorthumberlandView.ca
A View Like No Other -
- Rank: Team Member
- Registered: Dec 17, 2009
- Last visit: Apr 06, 2010
- Posts: 61
My suggestion is to export your data (only data, not structure) with phpMyAdmin, then truncate the data, then change the encoding of the database to utf8_general_ci and then import your data again.
This may do the trick.
Just make sure that in the exported data SQL file, all is readable and there aren't any 'strange' characters. -
- Rank: Softmore
- Registered: Jul 10, 2006
- Last visit: May 21, 2010
- Posts: 315
I was actually thinking of some sort of "Find and Replace" maneuver in phpMyAdmin. Unfortunately, I'm not entirely sure how to pull it off.
--
Christopher Pelletier
NorthumberlandView.ca
A View Like No Other -
- Rank: Softmore
- Registered: Jul 10, 2006
- Last visit: May 21, 2010
- Posts: 315
Well, I freely admit when I'm an idiot... and this is one of those times. I was looking at my site in Chrome and I decided to check "Fonts and Encoding" and it wasn't set to UTF8... I changed it and the characters show up fine...
Thanks for all your help anyway.
--
Christopher Pelletier
NorthumberlandView.ca
A View Like No Other
- Moderated by:
- Support
Users on-line
- 0 users
This list is based on users active over the last 60 minutes.
