Jump to:

23480 Posts in 18951 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Spaces appear as characters

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

Page: 1
Go to End
Author Topic: 542 Views
  • SSTN
    Avatar
    Community Member
    9 Posts

    Spaces appear as characters Link to this post

    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
  • dompie
    Avatar
    Community Member
    88 Posts

    Re: Spaces appear as characters Link to this post

    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.

  • Willr
    Avatar
    Forum Moderator
    5502 Posts

    Re: Spaces appear as characters Link to this post

    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

  • SSTN
    Avatar
    Community Member
    9 Posts

    Re: Spaces appear as characters Link to this post

    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?

    542 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.