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

  • Home
  • SEARCH
  • 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 6663643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:31:18+00:00 2026-05-26T02:31:18+00:00

I am using Access database for one system, and SQL server for another system.

  • 0

I am using Access database for one system, and SQL server for another system. The data gets synced between these two systems.
The problem is that one of the fields in a table in Access database is a Memo field which is in double-byte format. When I read this data using DataGridView in a Windows form, the text is displayed as ???.
Also, when data from this field is inserted in sql server database nvarchar(max) field, non-English characters are inserted as ???.

How can I fetch data from memo field, convert its encoding to Unicode, so that it appears correctly in SQL server database as well?

Please help!!!

  • 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-26T02:31:19+00:00Added an answer on May 26, 2026 at 2:31 am

    I solved this issue by converting the encoding as follows:

            //Define Windows 1252, Big5 and Unicode encodings
            System.Text.Encoding enc1252 = System.Text.Encoding.GetEncoding(1252);
            System.Text.Encoding encBig5 = System.Text.Encoding.GetEncoding(950);
            System.Text.Encoding encUTF16 = System.Text.Encoding.Unicode;
    
            byte[] arrByte1 = enc1252.GetBytes(note);  //string to be converted
            byte[] arrByte2 = System.Text.Encoding.Convert(encBig5, encUTF16, arrByte1);
            string convertedText = encUTF16.GetString(arrByte2);
            return convertedText;
    

    Thank you all for pitching in!

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

Sidebar

Related Questions

I copied a SQL Server database from one system to the next, identical setup,
I am using System.Data.Sqlite to access SQLite database in C#. I have a query
I'm using Fluent NHibernate auto mapping. I need to access more than one database
I am using Microsoft Access database for storing data. In that, I stored date
We have a local server with an access database which feeds data to clients
I'm using Visual Studio 2008. I'm using an .xsd/tableadapters to access a SQL Server
I am using one simple code to access the SQLite database from Java application
Using Access Database Table ID Time 001 100000 001 100005 001 103000 001 102500
Using Access 2003 Database Table1 Intime Outtime WorkTime OverTime 08:00:00 19:00:00 09:00:00 02:00:00 09:00:00
USING MS ACCESS 2003 How to check is null value in the access database?

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.