<p>I did contact Craft about this near the time this question was posted, they were not sure why it was occuring.</p>

<p>I found that this issue was environment specific, it was specifically happening locally on MAMP4, with 5.6.* using NGINX.</p>

<p>I was unable to find the cause of the issue, but, in the end it was not happening on server environments so I decided to give up.</p>

CC BY-SA 3.0
2017-12-06T22:05:25.143Z
2017-12-06T22:05:25.143Z
joe
<ol>
<li><p>Example from the frontend</p>

<p><a href="https://i.sstatic.net/jxu5B.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/jxu5B.png" alt="Example from the frontend"></a></p></li>
<li>Example in dev tools</li>
</ol>

<p><a href="https://i.sstatic.net/sFEo2.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/sFEo2.png" alt="Example in dev tools"></a></p>

<ol start="3">
<li>If I "view-source" on the page</li>
</ol>

<p><a href="https://i.sstatic.net/kpati.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/kpati.png" alt="If I &quot;view-source&quot; on the page"></a></p>

<ol start="4">
<li>Example from Rich Text Field</li>
</ol>

<p><a href="https://i.sstatic.net/9UzXn.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/9UzXn.png" alt="Example from Rich Text Field"></a></p>

<ol start="5">
<li>Example from Rich Text Field HTML</li>
</ol>

<p><a href="https://i.sstatic.net/UZYeT.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/UZYeT.png" alt="Example from Rich Text Field HTML"></a></p>

<p>This is a Rich Text field within a matrix, it's output in the template like this: <code>{{ block.text }}</code></p>

<p>If I pass the "|raw" filter I get the same.</p>

<p>If you notice, the Rich Text Field has a &nbsp; before the closing <code>&lt;/p&gt;</code>, which isn't output in the markup, instead I get this strange character.</p>

<p>I had a similar thing with hacksaw recently bringing up this character here:
<a href="https://github.com/ehousestudio/craft_hacksaw/issues/16" rel="nofollow noreferrer">https://github.com/ehousestudio/craft_hacksaw/issues/16</a></p>

<p>Any ideas on how to resolve this?</p>

CC BY-SA 3.0
2016-10-05T14:06:50.857Z
Could you copy and paste the strange character into the bottom field on this page and update your post with the results: http://www.freeformatter.com/string-utilities.html
Stephen Hamilton
CC BY-SA 3.0
2016-10-05T14:25:56.003Z
This happens to me in my mamp environment as well. But not on my live server. I guess it's more of an server encoding problem (UTF8 vs. something else).
KSPR
CC BY-SA 3.0
2016-10-05T15:41:42.423Z
@StephenHamilton here is the character's results on that page: https://www.dropbox.com/s/ipbhqt75dxo0vvy/Screenshot%202016-10-05%2016.40.57.png?dl=0

Further info on it: http://www.fileformat.info/info/unicode/char/0fffd/index.htm
joe
CC BY-SA 3.0
2016-10-05T15:42:08.103Z
@KSPR this site is only local (on mamp) right now, DB is on utf8 general ci
joe
CC BY-SA 3.0
2016-10-05T15:45:32.650Z
@joe Sounds like an environment issue then, could you maybe give us some more info on your web server setup?
Stephen Hamilton
CC BY-SA 3.0
2016-10-05T15:51:08.920Z
@StephenHamilton you may have read my last answer to KSPR before I edited it, I incorrectly said it was on 2 servers (it is not). There is only 1 environment, running on MAMP, php 5.6.10 & apache.
joe
<richtext><whitespace>
Rich Text field is producing weird space character instead of &nbsp;
# Rich Text field is producing weird space character instead of &nbsp;

(Asked by: username_0 on 2016-10-05)

1. Example from the frontend

   [![Example from the frontend](https://i.sstatic.net/jxu5B.png)](https://i.sstatic.net/jxu5B.png)
2. Example in dev tools

[![Example in dev tools](https://i.sstatic.net/sFEo2.png)](https://i.sstatic.net/sFEo2.png)

3. If I "view-source" on the page

[![If I ](https://i.sstatic.net/kpati.png)](https://i.sstatic.net/kpati.png)

4. Example from Rich Text Field

[![Example from Rich Text Field](https://i.sstatic.net/9UzXn.png)](https://i.sstatic.net/9UzXn.png)

5. Example from Rich Text Field HTML

[![Example from Rich Text Field HTML](https://i.sstatic.net/UZYeT.png)](https://i.sstatic.net/UZYeT.png)

This is a Rich Text field within a matrix, it's output in the template like this: `{{ block.text }}`

If I pass the "|raw" filter I get the same.

If you notice, the Rich Text Field has a   before the closing

, which isn't output in the markup, instead I get this strange character.

I had a similar thing with hacksaw recently bringing up this character here:
<https://github.com/ehousestudio/craft_hacksaw/issues/16>

Any ideas on how to resolve this?

**Tags:** richtext, whitespace

> **Comments:**
> **username_1**: Could you copy and paste the strange character into the bottom field on this page and update your post with the results: http://www.freeformatter.com/string-utilities.html  
> **username_2**: This happens to me in my mamp environment as well. But not on my live server. I guess it's more of an server encoding problem (UTF8 vs. something else).  
> **username_0**: @StephenHamilton here is the character's results on that page: https://www.dropbox.com/s/ipbhqt75dxo0vvy/Screenshot%202016-10-05%2016.40.57.png?dl=0  Further info on it: http://www.fileformat.info/info/unicode/char/0fffd/index.htm  
> **username_0**: @username_2 this site is only local (on mamp) right now, DB is on utf8 general ci  
> **username_1**: @username_0 Sounds like an environment issue then, could you maybe give us some more info on your web server setup?  
> **username_0**: @StephenHamilton you may have read my last answer to username_2 before I edited it, I incorrectly said it was on 2 servers (it is not). There is only 1 environment, running on MAMP, php 5.6.10 & apache.  

---

## 1 answers

### Answer by username_0 on 2017-12-06. Score: 1 | Accepted answer

I did contact Craft about this near the time this question was posted, they were not sure why it was occuring.

I found that this issue was environment specific, it was specifically happening locally on MAMP4, with 5.6.\* using NGINX.

I was unable to find the cause of the issue, but, in the end it was not happening on server environments so I decided to give up.


---

