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 6555433
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:49:11+00:00 2026-05-25T12:49:11+00:00

I have an existing C# project that reads a text file and loads it

  • 0

I have an existing C# project that reads a text file and loads it into an Oracle DB using System.Data.OleDb as provider. Problem is that if the file has upper ascii characters (e.g. ÀÑÓ, non-breaking space) it always generates an error when it tries to load it into Oracle:

Error is: OLEDBConnection Command Parameter data value could not be converted for reasons other than sign mismatch or data overflow.

Our Oracle can accept upper ascii characters (insert via SQL*PLUS works fine), it is System.Data.OleDb that is having issue.

Anyone know if there is a setting to change this? Can’t believe that that only accepts A-Z-0-9. Looked thru a ll documentation but couldn’t find anything.

If it can’t, how do you let OLEDB know to escape the character. Tired putting \ in the file before special characters, but it still errors with same message.

  • 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-25T12:49:12+00:00Added an answer on May 25, 2026 at 12:49 pm

    You may have to use HEX conversions. For example %c4 is Ä.

    Try that and let me know if that works. Here are the conversion functions you can use.

    internal String convertAsciiTextToHex(String asciiText)
    {
    StringBuilder sBuffer = new StringBuilder();
    for (int i = 0; i < asciiText.Length; i++)
    {
        sBuffer.Append(Convert.ToInt32(asciiText[i]).ToString("x"));
    }
    return sBuffer.ToString().ToUpper();
    }
    
    internal String convertHexToAsciiText(String hexString)
    {
        StringBuilder sb = new StringBuilder();
    
     for (int i = 0; i < hexString.Length; i += 2)
     {
       string hs = hexString.Substring(i, 2);
       sb.Append(Convert.ToChar(Convert.ToUInt32(hs, 16)));
     }
        String ascii = sb.ToString();
        return ascii;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an existing project that builds fine using my IDE. I'd like to
I have an existing project that consumes web services. One was added as a
I have an existing report (Crystal Report) in my Visual Studio project that is
I have a custom HttpModule rewrite engine in an existing web application project that
I have an existing asp.net webforms project that uses Microsoft's Enterprise DAAB for the
I have an existing project written in Ruby on Rails. It is sort of
I have an existing project repo which I use for project A, and has
I have a simple task. I have an existing project with a web service
I'm a C#, ASP.NET newbie. Let's say I have an existing C# project (from
I have taken over an existing project written beautifully in SQL with many useful

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.