Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Retrieving UNICODE data

Retrieving UNICODE data

Scheduled Pinned Locked Moved Database
helpcsharpdatabasesql-serversysadmin
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cshivaprasad
    wrote on last edited by
    #1

    I have a column in SQL Server with ‘nvarchar’ data type; I entered some string in Sanskrit language from enterprise manager of SQL Server. But when ever I search for that string through C# SQL command, it’s not finding. Record set containing null data. My C# SQL Command is like this... "SELECT SlNo FROM Noun where Word = '"+textBox1.Text+"'"; Same command is able to search English string from the same column. I hope U understood my problem. Can anybody please help me? Thanks in Advance Cheers Shiva

    C D 2 Replies Last reply
    0
    • C cshivaprasad

      I have a column in SQL Server with ‘nvarchar’ data type; I entered some string in Sanskrit language from enterprise manager of SQL Server. But when ever I search for that string through C# SQL command, it’s not finding. Record set containing null data. My C# SQL Command is like this... "SELECT SlNo FROM Noun where Word = '"+textBox1.Text+"'"; Same command is able to search English string from the same column. I hope U understood my problem. Can anybody please help me? Thanks in Advance Cheers Shiva

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      I don't know if this will help your current problem, but it is something you should do as a matter of habit. That is to use parameterised queries. SQL Injection Attacks and Tips on how to Prevent them[^]. ColinMackay.net Scottish Developers are looking for speakers for user group sessions over the next few months. Do you want to know more?

      1 Reply Last reply
      0
      • C cshivaprasad

        I have a column in SQL Server with ‘nvarchar’ data type; I entered some string in Sanskrit language from enterprise manager of SQL Server. But when ever I search for that string through C# SQL command, it’s not finding. Record set containing null data. My C# SQL Command is like this... "SELECT SlNo FROM Noun where Word = '"+textBox1.Text+"'"; Same command is able to search English string from the same column. I hope U understood my problem. Can anybody please help me? Thanks in Advance Cheers Shiva

        D Offline
        D Offline
        Divya Rathi
        wrote on last edited by
        #3

        when some unicode characters (like sanskrit , chinese) are entered into DB , they are encoded in sense that a character in sanskrti is converted to say "&55;" & then it is stored in db . Divya Rathi

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups