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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T04:28:30+00:00 2026-06-14T04:28:30+00:00

I have an existing database with existing data that I can’t change it’s structure

  • 0

I have an existing database with existing data that I can’t change it’s structure or values.
In that database there is a nvarchar column that contains values in the twilight unicode zone starting with F800, upward.
When I select those values in SQL or use SQL function, unicode – I get the proper values.
When I select the same values in .Net – I get an error value – all the values in that twilight zone become 65533.
I need those values – how can I presuade .Net to give me those values – something like chaninging the connection encoding to a custom one – or ucs-2 etc…

Here is a sample code that demonstraits the problem:

c.CommandText = "select NCHAR(55297)";
using (var r = c.ExecuteReader())
{
   r.Read();
   var result = r[0]; //expected 55297 but got 65533
}
  • 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-06-14T04:28:31+00:00Added an answer on June 14, 2026 at 4:28 am

    After much investigations I failed to find any way around this. I couldn’t find any two way conversion that would work here.

    It seems that some unicode values are intended for some strange unicode scenario that isn’t supported by .Net, but is partially supported in a way that breaks what we need here.

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

Sidebar

Related Questions

I have some existing code that retrieves data from a database using ADO.NET that
We have an existing database link in an Oracle database that links to data
I have a database with existing data that uses the datetime field which is
I have a database with existing data, where previously I've been using AUTO_INCREMENT on
I have an existing database(myDatabse) that I created with Microsoft Sql Managenent studio and
I have an existing database with tables which each have 4 partitions (there are
I have an existing database based on SQLiteOpenHelper that has several versions and code
I have an existing database with several rows that violate a foreign key constraint.
I have an existing SQL Server database, where I store data from large specific
I am using VS 2012 and EF 5. I have an existing database that

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.