how to insert multilanguage text to mysql database and view it again using php ?

Discussion in 'PHP' started by ramysarwat, Nov 8, 2010.

  1. #1
    im trying to insert multilanguage text into mysql database and

    but the text appear as symbols in phpmyadmin and the same thing when i try to view the text in web browser

    when the text is in a text file it appears normal but after insert the data to mysql it appears as symbols
     
    ramysarwat, Nov 8, 2010 IP
  2. learnerabn

    learnerabn Peon

    Messages:
    131
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    For what purpose you are using the multilangauge text?
     
    learnerabn, Nov 8, 2010 IP
  3. ramysarwat

    ramysarwat Peon

    Messages:
    164
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    i am creating a bible website that contain many bible languages

    i import the bible data from text files
     
    ramysarwat, Nov 8, 2010 IP
  4. learnerabn

    learnerabn Peon

    Messages:
    131
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    So why are u bothering about mysql view while you display in the site its coming correctly na?
     
    learnerabn, Nov 8, 2010 IP
  5. ramysarwat

    ramysarwat Peon

    Messages:
    164
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    no i have the same problem in the site
     
    ramysarwat, Nov 8, 2010 IP
  6. learnerabn

    learnerabn Peon

    Messages:
    131
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
  7. ramysarwat

    ramysarwat Peon

    Messages:
    164
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    ramysarwat, Nov 8, 2010 IP
  8. porto

    porto Peon

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    thanks for information...
     
    porto, Nov 9, 2010 IP
  9. poetbi

    poetbi Member

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #9
    You should use UTF-8 charset.
    then has no problem.
     
    poetbi, Nov 9, 2010 IP
  10. shaftian

    shaftian Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    If you have your storage as UTF8 and your special characters are being broken, make sure your client is connecting with UTF8. This could be an issue with PHP and not MySQL.
     
    shaftian, Nov 9, 2010 IP