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. OracleClient

OracleClient

Scheduled Pinned Locked Moved ASP.NET
csharpdatabaseoraclehelpquestion
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.
  • V Offline
    V Offline
    Venkatraman
    wrote on last edited by
    #1

    Hello, I am using Microsoft data provider for oracle. This is connecting to a Oracle 9i database. I would like to store and retrieve Japanese character using the Oracle client class. I have a problem right here. When i map .NET string datatype to the Varchar type of oracle client class, japanese character goes as junk characters(question marks). When i use Oracle Data Provider for .NET i had a datatype called Varchar2, where it working fine. Any one faced this problem thanks for your answer Cheers, Venkatraman Kalyanam Chennai - India "Being Excellent is not a skill, it is an attitude"

    J D 2 Replies Last reply
    0
    • V Venkatraman

      Hello, I am using Microsoft data provider for oracle. This is connecting to a Oracle 9i database. I would like to store and retrieve Japanese character using the Oracle client class. I have a problem right here. When i map .NET string datatype to the Varchar type of oracle client class, japanese character goes as junk characters(question marks). When i use Oracle Data Provider for .NET i had a datatype called Varchar2, where it working fine. Any one faced this problem thanks for your answer Cheers, Venkatraman Kalyanam Chennai - India "Being Excellent is not a skill, it is an attitude"

      J Offline
      J Offline
      Jeremy Oldham
      wrote on last edited by
      #2

      Ensure that the page is set for Unicode encoding. I had trouble with this in SQL Server. I could input Russian characters through Query Analyzer and they would store correctly in the database, but when I entered the information through my web form, nothing but question marks. I change the page encoding to UTF-8 and all was well. Jeremy Oldham

      V 1 Reply Last reply
      0
      • V Venkatraman

        Hello, I am using Microsoft data provider for oracle. This is connecting to a Oracle 9i database. I would like to store and retrieve Japanese character using the Oracle client class. I have a problem right here. When i map .NET string datatype to the Varchar type of oracle client class, japanese character goes as junk characters(question marks). When i use Oracle Data Provider for .NET i had a datatype called Varchar2, where it working fine. Any one faced this problem thanks for your answer Cheers, Venkatraman Kalyanam Chennai - India "Being Excellent is not a skill, it is an attitude"

        D Offline
        D Offline
        Deepak Khajuria
        wrote on last edited by
        #3

        For storing Japanese characters you need to use Unicode/UTF-8 as a single character may require more than one byte. I am not sure about Oracle, but in SQL Server you will need to Nvarchar to store such data. Deepak Khajuria

        1 Reply Last reply
        0
        • J Jeremy Oldham

          Ensure that the page is set for Unicode encoding. I had trouble with this in SQL Server. I could input Russian characters through Query Analyzer and they would store correctly in the database, but when I entered the information through my web form, nothing but question marks. I change the page encoding to UTF-8 and all was well. Jeremy Oldham

          V Offline
          V Offline
          Venkatraman
          wrote on last edited by
          #4

          I am using shift_JIS encoding. Cheers, Venkatraman Kalyanam Chennai - India "Being Excellent is not a skill, it is an attitude"

          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