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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T20:38:21+00:00 2026-06-03T20:38:21+00:00

I confess I’m having a really bad time here. I have a C program

  • 0

I confess I’m having a really bad time here.

I have a C program that reads a txt file and uploads to a database.

It works fine if you enter data directly into TextEdit. It does not work fine if you create data in Microsoft Word and copy it across. The major issue is how the newline works, although the MySQL calls get messed up too because of hidden characters.

I’ve been mucking about with hex checks and \r but there is chaos data in there. When I print a hex dump, the terminal output does predictably crazy things like jumping back a line, overwriting characters that have already been printed, and so on. I’ve been using isprint( to try and eliminate the hidden characters, but something is getting through anyway.

So… is there a way to get a “clean” copy of the data from Word into TextEdit?

  • 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-03T20:38:22+00:00Added an answer on June 3, 2026 at 8:38 pm

    You can use a Hex Editor to firstly look at the extra character’s that are present in the files. On the basis of that you can think something what should be there and what are the arbitrary things that u do not want. Later you can also try some options in the Text edit also to disable the Extra characters.Hope this helps.

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

Sidebar

Related Questions

I have to confess that I hate membership provider. The default implementation is not
Ok, this is really difficult to confess, but I do have a strong temptation
I have a database that increases every month. The schema remains the same, so
I have to confess I've had this question for a very long time and
OK, I confess at the outset I'm over my head a bit here. I've
I should confess I do not even own a Mac, I have done Windows
I confess I am a noob to asp.net and web forms. I'm having an
I will confess I'm very new to Python and I don't really know what
I must confess that today is my first day using either Sweave or LaTeX.
I read a lot about how bad catching base Exceptions is and I have

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.