WordPress.org

Forums

Custom Field Template
[resolved] CHARSET problems when loading a panel through AJAX (2 posts)

  1. Ignacio
    Member
    Posted 4 years ago #

    Hello.
    When changing the panel (meta box) through the select field on a custom post type, the fields are getting the classic "strange characters" problem due to the charset ajax is using. Firebug shows that the request is using ISO-8859-1, when it should be UTF-8.
    Any idea why is that happening?
    Thanks!

    http://wordpress.org/extend/plugins/custom-field-template/

  2. Ignacio
    Member
    Posted 4 years ago #

    Done. I solved it by adding
    header('Content-Type: text/html; charset=UTF-8');
    in custom-field-template.php right after the php tag opens.

    I believe that It would be great if the plugin author could add an option to the plugin for this. A simple input box where you can specify the charset you want to use.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Custom Field Template
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic