Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Aiheen aloitti: aholderness - heinäkuu 24, 2011, 03:57:32 IP

Otsikko: Help please �|� instead of seperator
Kirjoitti: aholderness - heinäkuu 24, 2011, 03:57:32 IP
Hi,

Please bare with me i'm really new to this. I get this code in my threads e.g

Mark Read �|� Notify �|� New Topic �|� Post new poll

It's on all my threads and i have no idea why. Any solutions/advice would be much appreciated, please go easy with me on the technical speak :)

Thanks,
Alex

p.s have attached a pic of what it looks like - i'm using v1.1.14 theme Altar
Otsikko: Re: Help please �|� instead of seperator
Kirjoitti: Ashley S - heinäkuu 24, 2011, 07:46:12 IP
Looks like a theme problem, does the theme fit with your SMF version?
Otsikko: Re: Help please �|� instead of seperator
Kirjoitti: live627 - heinäkuu 24, 2011, 07:52:27 IP
Sounds like an encoding problem. Perhaps set the encoding of index.template.php to UTF-8 without BOM

What theme is it?
Otsikko: Re: Help please �|� instead of seperator
Kirjoitti: MrPhil - heinäkuu 24, 2011, 10:09:19 IP
Some dolt created the theme with hardcoded non-ASCII characters in the code. My guess would be the non-breaking space. That character is encoded with something like Latin-1, and your forum is displaying the page in UTF-8. Find in the theme where this line is created, and remove the funny characters before and after the "|", and replace them with  .

Before someone criticizes me for calling the author a dolt, you never, ever put anything but ASCII characters in a code (non-language support) file. That's sheer stupidity. Language files are meant to be displayed with a certain encoding, but code must work with any encoding. Therefore, plain ASCII is usually safe (unless for some strange reason you're using UTF-16). Any characters not found in ASCII must be HTML entities (named or numbered).
Otsikko: Re: Help please �|� instead of seperator
Kirjoitti: aholderness - heinäkuu 25, 2011, 06:38:48 AP
Hi guys,

Thanks for the responses, the theme is Altar_111v2

Any tips on where the code is/ how to fix it? or do i need to change theme?

Thanks again
Otsikko: Re: Help please �|� instead of seperator
Kirjoitti: aholderness - heinäkuu 25, 2011, 06:39:45 AP
Mr Phil - sorry just read that response - thanks i will give it a go!

Otsikko: Re: Help please �|� instead of seperator
Kirjoitti: aholderness - heinäkuu 25, 2011, 12:17:10 IP
Thats worked a treat - thanks very much :)