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. General Programming
  3. C#
  4. how can i save uft-8 format characters to database

how can i save uft-8 format characters to database

Scheduled Pinned Locked Moved C#
csharpdatabasequestion
4 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
    sikandarhayat
    wrote on last edited by
    #1

    Salam how can i save uft-8 format characters to database is there is any method or technique that convert uft-8 to normal and then reencode it. in c#

    sikandar

    C 1 Reply Last reply
    0
    • S sikandarhayat

      Salam how can i save uft-8 format characters to database is there is any method or technique that convert uft-8 to normal and then reencode it. in c#

      sikandar

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      C# ha a number of classes for converting between text encodings. Is UFT-8 the same as ASCII ?

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

      S 1 Reply Last reply
      0
      • C Christian Graus

        C# ha a number of classes for converting between text encodings. Is UFT-8 the same as ASCII ?

        Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

        S Offline
        S Offline
        sikandarhayat
        wrote on last edited by
        #3

        if i save نام this world to data base when i retrieve i get ????? how can i get the origninal

        sikandar

        G 1 Reply Last reply
        0
        • S sikandarhayat

          if i save نام this world to data base when i retrieve i get ????? how can i get the origninal

          sikandar

          G Offline
          G Offline
          Guffa
          wrote on last edited by
          #4

          UTF-8 is an encoding, and you don't save encoded text to the database. Use a unicode data type. In SQL Server, for example, the unicode data types are named nvarchar and ntext.

          --- b { font-weight: normal; }

          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