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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:07:24+00:00 2026-05-23T14:07:24+00:00

In a Microsoft Access 2007 project the Access form objects are exported to files

  • 0

In a Microsoft Access 2007 project the Access form objects are exported to files with a dedicated software by using the built-in function “SaveAsText”. This is necessary because Access doesn’t store any of it’s code modules in isolated files at its own.

The file starts with the bytes “FF FE” (which is UTF-16 according to http://de.wikipedia.org/wiki/Byte_Order_Mark). I presume because of many NUL characters in this file, Hg treats this file as a binary file. Hence the diff pane in the TortoiseHG workbench always tells

File or diffs not displayed: File is binary.

which is quite understandable under this assumption. But nevertheless this file is just usual source code. I can view it for example in Windows’ notepad without any problems.

Is there any way to tell Mercurial, that this particular file should be treated as text, not binary?

Edit:
Additionally to the marked preferred answer below I decided not to change the saving behaviour, but to use the “Visual Diff” command (select file, then press Ctrl+d) instead.

  • 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-23T14:07:24+00:00Added an answer on May 23, 2026 at 2:07 pm

    I’m guessing that you frequently or occasionally export the form objects in order to track source code changes.

    The only way to convince Mercurial that a file is not binary is to avoid NUL bytes.

    You may want to convert the source code files to ASCII (or maybe ANSI) encoding as an additional step in your export in order to avoid the NUL bytes. If the source code files contain Unicode characters, you might try UTF-8, as this will only do multi-byte characters when necessary and single-byte characters otherwise, thus avoiding NUL bytes again. I tried it out briefly and Mercurial handles UTF-8: it doesn’t show “File is binary”, but the actual diff. I committed on the commandline, but viewed the diff in TortoiseHg. I have a link about commandline encoding challenges below.

    The hgrc encode/decode sections might be particularly useful in helping to filter the UTF-16 files into something that works better.

    A couple other pages on Mercurial and encoding:

    • Character Encoding On Windows
    • Encoding Strategy

    TortoiseHg 2.1 + Mercurial 1.9

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

Sidebar

Related Questions

So I wrote a project-management program for a small business using Microsoft Access 2007.
I tried to compress my Access 2007 database like this: System.Diagnostics.Process.Start(@C:\Program Files\Microsoft Office\Office12\msaccess.exe,@c:\Mydb.mdb /compact
I am using Microsoft Access 2007 to move and massage some data between two
This code is from an Access 2007 project I've been struggling with. The actual
I'm usually not working with Microsoft products. I have an MS Access 2007 project
I'm new creating applications using Visual Studio 2010 and Microsoft Access 2007. I already
I am new in creating application using Visual Studio 2010 and Microsoft Access 2007.
I've been creating an application using Visual Studio 2010 C# and Microsoft Access 2007.
I have a form in Microsoft Access 2007 called System, and a combo box
Is there any easy way to retrieve table creation DDL from Microsoft Access (2007)

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.