Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Spaces appear as characters


Reply


4 Posts   603 Views

Avatar
SSTN

Community Member, 9 Posts

2 September 2010 at 1:18pm

I recently published a site, and some users were seeing the site as it was intended, and others were seeing all the spaces (;nbsp) as A's. I've attached a screenshot. What's going on?

Attached Files
Avatar
dompie

Community Member, 88 Posts

2 September 2010 at 6:32pm

I would guess they have another default character set on their operating systems or something this way. So not all characters are displayed the way they are meant to.

Avatar
Willr

Forum Moderator, 5513 Posts

2 September 2010 at 7:46pm

Looks like you copied that content perhaps from word in ISO-8859-1 format rather than UTF-8? Maybe try repasting the content into a UTF-8 file (with notepad say) then pasting it back into tinymce

Avatar
SSTN

Community Member, 9 Posts

3 September 2010 at 12:31am

Edited: 03/09/2010 12:32am

Okay, I was thinking along the lines of encoding.
So, I changed the collation on my db to utf8_unicode. Exported all data. Imported again.
Added "AddDefaultCharset ISO-8859-1" to my htaccess file. (suggested by my host)

Seems to have fixed some other issues I was battling with, but I can't recreate this problem to know if it's solved. How can I test to see what some of these other people are seeing?