<p>If this were PHP, you'd need to run that through <a href="https://www.php.net/manual/en/function.html-entity-decode.php" rel="nofollow noreferrer">html_entity_decode</a> to get it to convert.</p>
<p>I don't think there's an equivalent way to do that from Twig, but you could write a simple plugin that added an <code>htmlentitydecode</code> <a href="https://craftcms.com/docs/3.x/extend/extending-twig.html" rel="nofollow noreferrer">Twig filter</a> to pull it off.</p>

CC BY-SA 4.0
2020-11-28T00:05:15.110Z
2020-11-28T00:05:15.110Z
Brad Bell
<p>I imported German text through Feed Me, but the special characters show up as unicode characters:</p>
<blockquote>
<p>“Ich interessiere mich sehr f\u00fcr Alte Musik”</p>
</blockquote>
<p>I tried a filter when outputting the text, but no success: <code>|convert_encoding(&quot;ISO-8859-1&quot;,&quot;UNICODE-1-1&quot;)</code></p>
<p>However, would prefer to have the text be readable in the backend as well not just on the frontend with the filter.</p>
<p>Any help would really be appreciated!</p>

<text>
How to convert Unicode in a field
# How to convert Unicode in a field

(Asked by: username_0 on 2020-11-26)

I imported German text through Feed Me, but the special characters show up as unicode characters:

> “Ich interessiere mich sehr f\u00fcr Alte Musik”

I tried a filter when outputting the text, but no success: `|convert_encoding("ISO-8859-1","UNICODE-1-1")`

However, would prefer to have the text be readable in the backend as well not just on the frontend with the filter.

Any help would really be appreciated!

**Tags:** text

---

## 1 answers

### Answer by username_1 on 2020-11-28. Score: 1

If this were PHP, you'd need to run that through [html\_entity\_decode](https://www.php.net/manual/en/function.html-entity-decode.php) to get it to convert.

I don't think there's an equivalent way to do that from Twig, but you could write a simple plugin that added an `htmlentitydecode` [Twig filter](https://craftcms.com/docs/3.x/extend/extending-twig.html) to pull it off.


---

