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   550 Views

Avatar
SSTN

2 September 2010 at 1:18pm Community Member, 9 Posts

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

2 September 2010 at 6:32pm Community Member, 88 Posts

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

2 September 2010 at 7:46pm Forum Moderator, 5511 Posts

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

3 September 2010 at 12:31am (Last edited: 3 September 2010 12:32am), Community Member, 9 Posts

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?