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. storing and reteriving unicode char in SQL database

storing and reteriving unicode char in SQL database

Scheduled Pinned Locked Moved Web Development
databasesql-serversysadmintoolsquestion
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
    Mann Khine
    wrote on last edited by
    #1

    I'm trying to show japanese character on the page and to sent mail. To show on the screen, I've to save as the following format in SQL Server. "**

    ƒtƒBƒŠƒbƒvØŒ”ƒIƒ“ƒ‰ƒCƒ“ŒûÀ\‚µ
    

    **" and use encoding "shift-jis". It is showing correctly at browser. But if I send mail that message, it can't be shown on some mail. eg. gmail and hotmail can show but yahoo can't show correctly. If I store as the following format in SQL Server, it can show correctly on most of the web mail. " & #12458 ; & #12531 ; & #12521 ; & #12452 ; & # 12531 ; & #21475 ; & #24231 ;" Can anybody explain about these formats? Can anybody advice me for the best practise dealing with unicode character? I would like to use same format to show and to send for unicode character. I'm using classic ASP for server side script. Thanks in advance, Mann Khine

    A 1 Reply Last reply
    0
    • M Mann Khine

      I'm trying to show japanese character on the page and to sent mail. To show on the screen, I've to save as the following format in SQL Server. "**

      ƒtƒBƒŠƒbƒvØŒ”ƒIƒ“ƒ‰ƒCƒ“ŒûÀ\‚µ
      

      **" and use encoding "shift-jis". It is showing correctly at browser. But if I send mail that message, it can't be shown on some mail. eg. gmail and hotmail can show but yahoo can't show correctly. If I store as the following format in SQL Server, it can show correctly on most of the web mail. " & #12458 ; & #12531 ; & #12521 ; & #12452 ; & # 12531 ; & #21475 ; & #24231 ;" Can anybody explain about these formats? Can anybody advice me for the best practise dealing with unicode character? I would like to use same format to show and to send for unicode character. I'm using classic ASP for server side script. Thanks in advance, Mann Khine

      A Offline
      A Offline
      Ashfield
      wrote on last edited by
      #2

      Have you tried using nvarchar columns in your database?

      Bob Ashfield Consultants Ltd

      M 1 Reply Last reply
      0
      • A Ashfield

        Have you tried using nvarchar columns in your database?

        Bob Ashfield Consultants Ltd

        M Offline
        M Offline
        Mann Khine
        wrote on last edited by
        #3

        Yes Bob, I used nvarchar columns.

        A 1 Reply Last reply
        0
        • M Mann Khine

          Yes Bob, I used nvarchar columns.

          A Offline
          A Offline
          Ashfield
          wrote on last edited by
          #4

          Just a thought, suspected you already had. Could it be the format of the mail message? I know there are problems with extended charater sets when the email client only displays plain text.

          Bob Ashfield Consultants Ltd

          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