WordPress.org

Forums

[resolved] Local charset? (6 posts)

  1. mattisn
    Member
    Posted 10 years ago #

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

  2. PozHonks
    Member
    Posted 10 years ago #

    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.

  3. moshu
    Member
    Posted 10 years ago #

    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.

  4. mattisn
    Member
    Posted 10 years ago #

    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

  5. moshu
    Member
    Posted 10 years ago #

    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.

  6. mattisn
    Member
    Posted 10 years ago #

    I think i got it right now! Thanks moshu

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags