Support

Account

Home Forums General Issues Encoding special characters in Fields

Unread

Encoding special characters in Fields

  • Hello,

    I’ve got a field of Text type in ACF. In Formatting, I’ve selected “Convert HTML into tags”.

    I’m trying to show the field in my template using <?php the_field(‘myfieldname’); ?>. Everything shows up fine, but I’d need UTF-8 characters to be specially encoded — similar as to WordPress shows them normally. In this case, I’d need for example ä/ö/Ä/Ö characters to be converted to ä/ö/Äuml;/Öuml; -entitites.

    How can I achieve this using ACF? Can I use some kind of hook filter to apply WordPress formatting to the ACF field?

    Thank you!

Viewing 1 post (of 1 total)

The topic ‘Encoding special characters in Fields’ is closed to new replies.