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. Arabic Support in ASP.net application and sql server

Arabic Support in ASP.net application and sql server

Scheduled Pinned Locked Moved ASP.NET
databasecsharpasp-netsql-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.
  • M Offline
    M Offline
    mahmoud mohammed
    wrote on last edited by
    #1

    how to make my web apllication(ASp.net) and sql server support arabic language to insert data in arabic in my DB from my web application... if anyone know the solution,please answer me... :)

    P V 2 Replies Last reply
    0
    • M mahmoud mohammed

      how to make my web apllication(ASp.net) and sql server support arabic language to insert data in arabic in my DB from my web application... if anyone know the solution,please answer me... :)

      P Offline
      P Offline
      Panthesh_Shah
      wrote on last edited by
      #2

      Hi Have a look at links shown below , hope it will help: Look at the walkthrough here: http://msdn.microsoft.com/library/d...ingWebForms.asp These quickstart samples also do a good job of showing the basic underlying concepts: http://msdn.microsoft.com/library/d...ocalization.asp You might also find the presentation here useful: http://www.microsoft.com/india/msdn.../downloads.aspx (look for "Building applications with localization in mind")

      1 Reply Last reply
      0
      • M mahmoud mohammed

        how to make my web apllication(ASp.net) and sql server support arabic language to insert data in arabic in my DB from my web application... if anyone know the solution,please answer me... :)

        V Offline
        V Offline
        vlad_a
        wrote on last edited by
        #3

        Hi, Look some solutions for SQL and for ASP.net: In SQL: Data type of field for your table must be nchar, nvarchar or ntext. Exactly data type with 'n' abide unicode informations. When you insert informations in table use N before switch text. For exemple: declare @strMessage nvarchar (4000) select @strMessage = 'insert into TblJournal(JComMessage) values (N''' + @JComMessage + ''')' execute ( @strMessage ) In this case @JComMessage is arabic text. In ASP.net problems generated by usage of arabic text are general solved through encoding and decoding. You can use namespace System.Web and System.Text. System.Web.HttpUtility.UrlEncodeUnicode(); System.Web.HttpUtility.UrlDecode(); System.Text.UTF8Encoding... System.Text.UTF8Encoding.GetEncoding

        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