[help] insert windows-1256 string into a utf-8 db

Discussion in 'PHP' started by Eng_A_Moktar, Jul 8, 2009.

  1. #1
    I have a page with windows-1256 encode
    i wanna insert some strings into my db , which with utf-8 encode

    the page has to be read with windows-1256, to be read well.

    when i just insert these string , with submit form , it goes wrong in my db,
    maybe i have to re encode string before post? , I'm not sure .
    can anyone help ?
    thanks.
     
    Eng_A_Moktar, Jul 8, 2009 IP
  2. HorseGalleria

    HorseGalleria Peon

    Messages:
    91
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Take a look at the PHP functions utf8_encode and utf8_decode.
     
    HorseGalleria, Jul 9, 2009 IP