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. Web Development
  3. ASP.NET
  4. Problem Saving and retrieving Unicode Character

Problem Saving and retrieving Unicode Character

Scheduled Pinned Locked Moved ASP.NET
databasehelpquestion
4 Posts 2 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.
  • M Offline
    M Offline
    MasudM
    wrote on last edited by
    #1

    Hi I'm developing a site which contain Armenian Unicode Characters I have problem to save data into Ms Sql . I kind of sure I do not choose the right collation for my Database but I do not know which collation should I choose . I choose Cyrlic_General_CL_AS for my DataBase . Some one say that the charset should Mach to work correctly I set the Character set of my page to charset="windows-1251" Help me if I choose the wrong Collation and what is the right one ? or should I change something in my page characterSet ? Thanks

    S 1 Reply Last reply
    0
    • M MasudM

      Hi I'm developing a site which contain Armenian Unicode Characters I have problem to save data into Ms Sql . I kind of sure I do not choose the right collation for my Database but I do not know which collation should I choose . I choose Cyrlic_General_CL_AS for my DataBase . Some one say that the charset should Mach to work correctly I set the Character set of my page to charset="windows-1251" Help me if I choose the wrong Collation and what is the right one ? or should I change something in my page characterSet ? Thanks

      S Offline
      S Offline
      Spanky3
      wrote on last edited by
      #2

      Hi simple set the row to nvchar which means all chars allowed and when you query use: N'unicodevalue' eg: INSERT INTO table Values(N'α-KTX3.1',someotherval) SELECT * FROM table WHERE field='α-KTX3.1' N'blehbleh' forces sql to interpret as unicode Hope this helps Atul

      M 1 Reply Last reply
      0
      • S Spanky3

        Hi simple set the row to nvchar which means all chars allowed and when you query use: N'unicodevalue' eg: INSERT INTO table Values(N'α-KTX3.1',someotherval) SELECT * FROM table WHERE field='α-KTX3.1' N'blehbleh' forces sql to interpret as unicode Hope this helps Atul

        M Offline
        M Offline
        MasudM
        wrote on last edited by
        #3

        Oooh Man ! Hi That was a real help . Thanks a lot I am totally in the wrong path . and never can get what I want . I am about to change the Character to it 's UTF8 code then save that in my Sql DataBase. I hope I can return a favour .

        S 1 Reply Last reply
        0
        • M MasudM

          Oooh Man ! Hi That was a real help . Thanks a lot I am totally in the wrong path . and never can get what I want . I am about to change the Character to it 's UTF8 code then save that in my Sql DataBase. I hope I can return a favour .

          S Offline
          S Offline
          Spanky3
          wrote on last edited by
          #4

          its cool:) I did the same thing as you changing language sets and all sorts of crap and in the end it was something so simple. Its unfortunate microsoft dont have it clearly documented :( but i had to ask a friend to find out as well. Atul

          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