Page 1 of 1

NBSP; instead of spaces

Posted: Mon Jan 11, 2016 8:06 pm
by cbsarge
I just checked and all of the CSS files in play have utf-8 declared at the top but, some of my "spaces" are rendering as   when displayed.

Anyone have any suggestions on a fix?

Re: NBSP; instead of spaces

Posted: Tue Jan 12, 2016 5:46 pm
by cbsarge
I just checked and it seems to do it even on an unmodified version of NWE on my test server.

It looks like more than one "space" is causing an nbsp to be rendered. Below are the results of entering test and then 1, 2 and 3 spaces after.

test onespace
test  twospaces
test   threespaces

Has anyone dealt with this issue yet?

Re: NBSP; instead of spaces

Posted: Tue Jan 12, 2016 5:47 pm
by cbsarge
a space followed by a carriage return is also causing a nbsp to be displayed.

Re: NBSP; instead of spaces

Posted: Tue Jan 12, 2016 6:26 pm
by hallsofvallhalla
Thats a strange one and I wish I had an answer but I have never had that issue. Does all HTML entities do that or just the space? What happpens if you use &xa0; ?

Re: NBSP; instead of spaces

Posted: Tue Jan 12, 2016 9:06 pm
by cbsarge
Could it be something different about the collation of my database? Right now the Content field in the DB is set to utf_bin.

Re: NBSP; instead of spaces

Posted: Tue Jan 12, 2016 9:51 pm
by gmoore
Do you have a link with the example? Very interested.
Greg

Re: NBSP; instead of spaces

Posted: Tue Jan 12, 2016 9:58 pm
by cbsarge
If you log onto my site and browse the forum (not alot there) you'll see it.
http://www.villainsvsheroes.net

Re: NBSP; instead of spaces

Posted: Wed Jan 13, 2016 12:27 am
by gmoore
Am on but already fighting people. Ooomf, Powwww!

Re: NBSP; instead of spaces

Posted: Wed Jan 13, 2016 1:00 am
by gmoore

Re: NBSP; instead of spaces

Posted: Wed Jan 13, 2016 2:57 pm
by hallsofvallhalla
Ah so this going into the databse then being extracted back out before being put on the page. Have you tried HTML encoding and unencoding?