Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7567007
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T14:33:23+00:00 2026-05-30T14:33:23+00:00

I am using this code to read data from Oracle Database. That data stored

  • 0

I am using this code to read data from Oracle Database. That data stored in Oracle is Navarchar2 data type but when It it display in gridview it looks like this. ?& ? ?????? ??? ? My database Charaacter set is WE8MSWIN1252

Here is mY code through which I am reading from Oracle database.

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
      Dim con = New OleDbConnection("Data Source=cms; User ID=cms20112012; Password=??????; provider=OraOLEDB.Oracle")           
       con.open()
        Dim cmd As New OleDbCommand("Select to_char(grower_Name) grower from V_GROW", con)
        Dim da As New OleDbDataAdapter(cmd)
        Dim ds As New DataSet
        Dim I As Long
        da.Fill(ds, "V_GROW")
        GridView1.DataSource = ds
        GridView1.DataBind()
        For I = 0 To ds.Tables("V_GROW").Rows.Count - 1
            Dim grower As String = ds.Tables("V_GROW").Rows(I).Item("grower")
            grower = Encoding.ASCII.GetString(Encoding.Unicode.GetBytes(grower))
            Label1.Text = grower
        Next I
        con.close()
    End Sub

Please anyone help me to get out of this issue

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T14:33:25+00:00Added an answer on May 30, 2026 at 2:33 pm

    Your database needs to use the UTF encoding or it will not store / retrieve correctly. When you setup the Oracle database – you must set the character set (National and Database) to UTF.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using this code to read the connection string from my app.config file but
I am using this code to read data from a webpage : public class
I want to do following: Make Oracle stored procedure for read all data from
I have to read data from mdb-files using c++ but I'm having trouble getting
I'm using this code to return some string from a tcpclient but when the
I have the following bit of code that reads data from the an Oracle
I have the following code that uses Sequence objects to read data from a
I am currently using this code to input data from numerous files into R:
I'm using this code: public static MjpegInputStream read(String url) { HttpResponse res; DefaultHttpClient httpclient
Using This code: I am tring to fill the page with the data and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.