• Resolved mattisn

    (@mattisn)


    On a page I’m working on I need a different charset on another part of the same page. How would I do that?

Viewing 5 replies - 1 through 5 (of 5 total)
  • You don’t do it. You have to stick with one charset. It is *impossible* to mix 2 charsets in the same page (or the browser will be lost), and WP only accepts one single charset.

    Not entirely true – you can “mix” languages…
    However, my question is: since WP has by default utf-8 encoding which is OK for any language, why would you want to change the charset in a page/post?

    Just change your language on your keyboard and write in whatever langugae you want.
    See an example of different languages in the same post.

    Thread Starter mattisn

    (@mattisn)

    The problem is: I have designed a website (non-wp) where I use the loop to get the posts (news). When I use utf-8 encoding in my index (non-wp), the posts are displayed with the correct charset, however the static text in my page is displayed wrong (doesn’t show the correct characters)! That’s why i need to give the static text a different charset!

    Thanks alot

    however the static text in my page is displayed wrong (doesn’t show the correct characters)!

    That’s because that text has been written with a different encoding. Why not just convert it?

    And I have to correct myself: you can mix languages (even text direction) but not encoding on the same page/file.

    Thread Starter mattisn

    (@mattisn)

    I think i got it right now! Thanks moshu

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Local charset?’ is closed to new replies.