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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:27:53+00:00 2026-06-13T14:27:53+00:00

My proprietary text encoding uses all 256 byte values with the lower 128 being

  • 0

My proprietary text encoding uses all 256 byte values with the lower 128 being mostly the same as ascii (the important stuff i.e. control characters, spaces, newlines are all exactly the same). I want to be able to read this file as bytes in C# .NET and still maintain the ability to read it line by line and do regex searches on it. What is the best way to do this in C# .NET?

I realize that if my encoding only used the first 128 byte values this would be simple. I just don’t want the higher characters to get accidentally converted to unicode values.

  • 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-13T14:27:54+00:00Added an answer on June 13, 2026 at 2:27 pm

    It sounds like you just want to implement your own subclass of Encoding. It’s reasonably straightforward to do this, and then you can pass it to the StreamReader constructor (or File.OpenText etc.

    If you look at the code I wrote (many years ago) to handle EBCDIC, you should be able to use that as a reasonable starting point.

    The overlap with ASCII seems pretty much irrelevant to this, by the way.

    I just don’t want the higher characters to get accidentally converted to unicode values.

    Any time you convert any binary data into text, you’re converting to Unicode values. That’s how text in .NET is defined.

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

Sidebar

Related Questions

I have text files containing structured data (it is a proprietary format and not
We are developing a closed-source proprietary product that uses quite a few open source
I have a text file that is being processed as part of a batch
My company's proprietary software generates a log file that is much easier to use
We have a proprietary framework and now we want to integrate the authentication by
Within our company we use a proprietary template engine, which stores its templates in
I’m trying to use the proprietary iPhone Safari properties -webkit-transition and -webkit-transform to make
Problem: We have to read from a proprietary binary file at work. It changes
I am trying to integrate a Hibernate application into a proprietary framework. My problem
I am currently using WatiN to automate a proprietary website at my work, 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.