convert_encoding is screwing up Spanish-language characters Standard "when article has no summary, output the first 200 characters of the body minus HTML" logic going on here. We're implementing some Spanish-language features for the first time and, while special characters are stored fine in the database (utf_unicode_ci collation) and they output fine on the front end when convert_encoding isn't applied, they come out garbled when convert_encoding is applied.

My code is:

{{ item.articleBodySpanish.type('bodyText')[0].bodyText|striptags|convert_encoding('UTF-8', 'HTML-ENTITIES')|slice(0, 200)|default('Lee mas') }}...


I have an entry where the database contains this for articleBodySpanish: 

&lt;p&gt;Empuja sus puños contra los postes y sigue insistiendo en que ve a los fantasmas.&amp;nbsp;Empuja sus puños contra los postes y sigue insistiendo en que ve a los fantasmas.&lt;/p&gt;


With the code above, the output I get is as follows:

Empuja sus puÃ±os contra los postes y sigue insistiendo en que ve a los fantasmas. Empuja sus puÃ±os contra los postes y sigue insistiendo en que ve a los fantasmas.


If I remove the |convert_encoding('UTF-8', 'HTML-ENTITIES') the output becomes this, so I can't even just take it out to moot the issue:

Empuja sus puños contra los postes y sigue insistiendo en que ve a los fantasmas.&amp;nbsp;Empuja sus puños contra los postes y sigue insistiendo en que ve a los fantasmas.


What can I do here?
You shouldn't need any convert_encoding here. From your results, the special characters are coming out fine, it's your &amp;nbsp that is your problem. 

For this to go you can use the |raw Twig filter.