1
  1. Example from the frontend

    Example from the frontend

  2. Example in dev tools

Example in dev tools

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

If I "view-source" on the page

  1. Example from Rich Text Field

Example from Rich Text Field

  1. Example from Rich Text Field HTML

Example from Rich Text Field HTML

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 </p>, 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?

6
  • Could you copy and paste the strange character into the bottom field on this page and update your post with the results: freeformatter.com/string-utilities.html Commented Oct 5, 2016 at 14:06
  • 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
    Commented Oct 5, 2016 at 14:25
  • @StephenHamilton here is the character's results on that page: dropbox.com/s/ipbhqt75dxo0vvy/… Further info on it: fileformat.info/info/unicode/char/0fffd/index.htm
    – joe
    Commented Oct 5, 2016 at 15:41
  • @KSPR this site is only local (on mamp) right now, DB is on utf8 general ci
    – joe
    Commented Oct 5, 2016 at 15:42
  • @joe Sounds like an environment issue then, could you maybe give us some more info on your web server setup? Commented Oct 5, 2016 at 15:45

1 Answer 1

1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.