Fork me on GitHub

Characters appearing incorrectly in Web 2.0 theme  Bottom

  • 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
  • *Bump* Anyone?

    --
    Christopher Pelletier
    NorthumberlandView.ca
    A View Like No Other
  • Hi, your DB uses UTF8, does this match the browser settings (Firefox: View->Character Encoding) and your page headers?

    Code

    meta charset="utf-8"
  • 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
  • Do these character appear correctly when using phpMyAdmin?
    Also, do your files use UTF-8 encoding?
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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.
  • 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
  • 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... shande
    Thanks for all your help anyway.

    --
    Christopher Pelletier
    NorthumberlandView.ca
    A View Like No Other
  • 0 users

This list is based on users active over the last 60 minutes.