# Highlighting terms with character encodings

**URL:** <https://community.swiftype.com/t/highlighting-terms-with-character-encodings/805>\
**Category:** API\
**Created:** [August 3, 2018, 12:31pm UTC](https://community.swiftype.com/t/highlighting-terms-with-character-encodings/805 "2018-08-03T12:31:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rebecca.deprey](https://avatars.discourse-cdn.com/v4/letter/r/b9e5f3/32.png) [@rebecca.deprey](https://community.swiftype.com/u/rebecca.deprey)\
**Post date:** [August 3, 2018, 12:31pm UTC](https://community.swiftype.com/t/highlighting-terms-with-character-encodings/805/1 "2018-08-03T12:31:58Z")

</div>

We’ve recently started using the highlight fields functionality to highlight search terms within content titles and descriptions in our search results. I noticed an issue though where some of our PDF titles have encoded spaces in them (i.e., %20 instead of " ") and it causes the highlighting to be incorrect when there are multiple search terms. For example, if you search for “real estate” and the result title is “Real%20Estate%20Asssessments.pdf”, only “Real” is highlighted. Is there a way to decode data in fields before the Swiftype makes the highlighting selection?

Thanks for your help!
