WordPress.org

Ready to get started?Download WordPress

Forums

How Do I: Filter the Entire Output? (3 posts)

  1. goxu
    Member
    Posted 7 years ago #

    Hi all,

    I'm wondering how I could filter all the output at once not only the post contents', comments', or siebars' but also included files such as fetched RSS lists. I mean everything.

    I have people who transfer from other blogs and need to chanage the character set of the entire database. There are bunch of advice to convert encoding but still some are not successful. They are those who use multibyte languages.

    So I decided to make a plugin to help them to adjest the character set without any stress.

    $all_the_output = mb_convert_encoding($all_the_output, "UTF-8", "auto");

    If I could add a filter something like this to the entire output, then I suppose those who has multiple character sets in their database should not have problems.

    So does anybody know the way of doing it?

  2. No, there isn't. There's no "global" filter.

    If you need to modify the output of everything coming from PHP, try this plugin I just wrote:

    http://viper007bond.pastecode.com/10424

    I haven't actually tried it, but it should work.

  3. goxu
    Member
    Posted 7 years ago #

    Thanks Viper.

    I'll ask my people if your plugin works for them. I really appreciate it.

Topic Closed

This topic has been closed to new replies.

About this Topic