[wp-hackers] Character Encoding Hell (and filtering /n to <p>)
iacobs at m0n5t3r.info
Tue Jan 8 16:36:03 GMT 2008
Alex Andrews wrote:
> Currently programming a plugin and can't for the life of me work out
> the reason my foreign characters aren't displaying right.
> In my header I have the following <meta http-equiv="content-type"
> content="text/html; charset=UTF-8" /> . The capital e accute
> characters turn out as ? , not rendering correctly at all.
> I have numerous functions that take cells from the database and sticks
> them in bits of the plugin output. However, it never works, until I
> use Safari to change the text encoding to Western (ISO Latin 1). The
> page re-renders then it shows the characters right.
check the charset in the wordpress settings, and/or the PHP locale setting.
> More simple question, very much secondary: what filter other than
> wp_textualize convert new lines and various spacings into HTML, adding
> p and br tags - as is done with all posts...
I remember that it was wpautop messing things up most of the time, but
things might have changed since I touched Wordpress the last time.
More information about the wp-hackers