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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T08:41:15+00:00 2026-06-15T08:41:15+00:00

We have many xml files and most of them are UTF-16 encoded. When I

  • 0

We have many xml files and most of them are UTF-16 encoded.

When I add a file to subversion using SmartSVN it always gets the svn:mime-type=application/octet-stream.

This prevents the visual DIFF tool from SmartSVN to work on these files which is very annoying.

From the SVN FAQ:
http://subversion.apache.org/faq.html#binary-files

When you first add or import a file into Subversion, the file is
examined to determine if it is a binary file. Currently, Subversion
just looks at the first 1024 bytes of the file; if any of the bytes
are zero, or if more than 15% are not ASCII printing characters, then
Subversion calls the file binary. This heuristic might be improved in
the future, however.

This is very stupid when UTF-16 files are used, because they contain ~50% zero in most cases.

I also read that there is a ways to set properties automatically from the SVN client:
http://www.mediawiki.org/wiki/Subversion/auto-props

Does this also allow to remove the auto detected binary mime type?

Is it possible to set this on the repository / svn server somehow, so I don’t have to set it on every workstation?

  • 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-15T08:41:16+00:00Added an answer on June 15, 2026 at 8:41 am
    1. You can’t redefine mime-type for UTF-16 XMLs only (but can – for all xmls)
    2. I don’t know good way of redefining mim-type on server or on per-repository basis

    If the above points do not frighten you, you can globally (per client’s host) redefine mime-type on client’s subversion config files: %AppData%\Subversion\config, [auto-props] section. Something like

    *.xml = svn:mime-type=text/xml
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a peice of code that outputs many different XML files using the
I have a large XML file (many MBs) that I cannot afford to download
I have an XML file which has many section like the one below: <Operations>
I have a xml that has so many elements and most of that contain
I have many many files in a folder, and I want to process them
I have many directories with files in them. I want to create a comma
I have many text files containing bank transactions in the middle of them. Each
I have a large xml file (1Gb). I need to make many queries on
I many, many .xml files and i need to extract some co-ordinates from them.
I have an application that reads an xml file every 5 minutes (using a

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.