How to fetch kannada values from the database in php?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shruthigc
    New Member
    • Jan 2012
    • 5

    How to fetch kannada values from the database in php?

    How to fetch kannada values from the database in php?
    example: ಆಕಾಶ
    I want php programm to fetch the above example.....
  • dlite922
    Recognized Expert Top Contributor
    • Dec 2007
    • 1586

    #2
    Is your database in UTF-8 charset?

    Dan

    Comment

    • shruthigc
      New Member
      • Jan 2012
      • 5

      #3
      I want exact encoder to fetch kannada character from the database

      Originally posted by dlite922
      Is your database in UTF-8 charset?

      Dan
      yessssss..... my database is in UTF-8 !!!

      I want exact encoder to fetch kannada character from the database in php.........

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        then you need to set your db connection to use UTF-8 and (naturally) the output encoding as well.

        Comment

        • shruthigc
          New Member
          • Jan 2012
          • 5

          #5
          It is in UTF-8 only but the output is displays ?????? like this

          Originally posted by Dormilich
          then you need to set your db connection to use UTF-8 and (naturally) the output encoding as well.
          It is in UTF-8 only but the output is displays ?????? like this, for that what i want to do?


          I want to fetch kannada character from the database
          i need php encoder syntax.......

          Comment

          • Dormilich
            Recognized Expert Expert
            • Aug 2008
            • 8694

            #6
            did you verify the output encoding?

            Comment

            • shruthigc
              New Member
              • Jan 2012
              • 5

              #7
              Yes i verified the output, but it displays as ??????? like this only..

              Originally posted by Dormilich
              did you verify the output encoding?
              Yes i verified the output, but it displays as ??????? like this only..


              There is an encoding syntax are there for kannada characters to fetch the values from the database.

              Comment

              • Dormilich
                Recognized Expert Expert
                • Aug 2008
                • 8694

                #8
                Yes i verified the output,
                I didn't ask for the output, I asked for the output encoding.

                as example, if you display Shift-JIS as Latin-1 you'll only see scrambled characters.

                Comment

                • shruthigc
                  New Member
                  • Jan 2012
                  • 5

                  #9
                  How to verify the output encoding?

                  Originally posted by Dormilich
                  I didn't ask for the output, I asked for the output encoding.

                  as example, if you display Shift-JIS as Latin-1 you'll only see scrambled characters.
                  I want one more clarification,h ow to connect database
                  in php?

                  Comment

                  • kirtikanani
                    New Member
                    • Feb 2012
                    • 1

                    #10
                    simply you want to connect database you requrment phpmyadmin
                    fist on create database after
                    you can use mysql_connect function after selcte database
                    afeter
                    you can fetch record useing the mysql_fetch_arr ay function

                    Comment

                    Working...