charset problem

Discussion in 'PHP' started by dizyn, Feb 27, 2007.

  1. #1
    Hi
    I am having charset problem at the moment, if i try:

    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    some of the character which are in Tarkish language don't work
    and if i use
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    others don't work.

    I even tried:
    utf8_decode()
    utf8_encode()
    
    PHP:
    any help
     
    dizyn, Feb 27, 2007 IP
  2. bibel

    bibel Active Member

    Messages:
    289
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    58
    #2
    This occurs when you have text with different encodings on your page.
    If the content comes from the database, it was saved there with the encoding it recieved. If it comes from a file, you need to open that file and save it in another encoding. I recommend utf-8.

    If it's from the database, you can try to use iconv to change the encoding, but you neet to know the original encoding in order to convert it
     
    bibel, Feb 27, 2007 IP
  3. dizyn

    dizyn Active Member

    Messages:
    251
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #3
    i am getting data from iso and showing on a page which is utf-8
    and getting issues.
     
    dizyn, Feb 28, 2007 IP