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. MS SQL Greek Lettering, collation and unicode 1200

MS SQL Greek Lettering, collation and unicode 1200

Scheduled Pinned Locked Moved Database
databasehelpcsharpasp-netsql-server
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.
  • S Offline
    S Offline
    Spanky3
    wrote on last edited by
    #1

    Hi, I am currently working on a project recording names of toxins. Some of them have greek lettering and i have found a major problem with MSSQL. When i came across the character 'ω' which is omega MSSQL inserts it as a ? where it occurs. I have read around and found it seems to be with collation settings. If i copy and paste a 'ω' into a asp.net page it says i need to save the page with encoding unicode 1200 which works fine. When setting collation with MS SQL there is no code 1200 option so i dont know what to do :( Even microsoft access by default allows me to use 'ω' but surely there there is a way to do this with an enterprise class DB as MS SQL ? Please help i'm pulling my hair out! :confused::confused::confused::((:((:((

    J 1 Reply Last reply
    0
    • S Spanky3

      Hi, I am currently working on a project recording names of toxins. Some of them have greek lettering and i have found a major problem with MSSQL. When i came across the character 'ω' which is omega MSSQL inserts it as a ? where it occurs. I have read around and found it seems to be with collation settings. If i copy and paste a 'ω' into a asp.net page it says i need to save the page with encoding unicode 1200 which works fine. When setting collation with MS SQL there is no code 1200 option so i dont know what to do :( Even microsoft access by default allows me to use 'ω' but surely there there is a way to do this with an enterprise class DB as MS SQL ? Please help i'm pulling my hair out! :confused::confused::confused::((:((:((

      J Offline
      J Offline
      Jeff Varszegi
      wrote on last edited by
      #2

      I still haven't worked with other code pages in MSSQL yet, although I want to sometime. Have you tried playing around with NVARCHAR yet? Sorry, it's the only thing I can think of off the top of my head. Thank you. Jeff Varszegi

      A 1 Reply Last reply
      0
      • J Jeff Varszegi

        I still haven't worked with other code pages in MSSQL yet, although I want to sometime. Have you tried playing around with NVARCHAR yet? Sorry, it's the only thing I can think of off the top of my head. Thank you. Jeff Varszegi

        A Offline
        A Offline
        Anonymous
        wrote on last edited by
        #3

        i found my answer use N'stringwhichhasunicode' instead of just using 'stringwhichhasunicode' whenever you use an instance of it. EG: INSERT INTO TABLE VALUES(N'value1','value2' SELECT * FROM TABLE WHERE Column = N'unival' 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