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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:43:59+00:00 2026-05-22T01:43:59+00:00

Most tragically, I got several TFS team projects with an en dash in them.

  • 0

Most tragically, I got several TFS team projects with an en dash in them.

If you are not familiar with en dash, open up MS Word and type in alt+8211.

You will see a larger looking dash. (Like this if it renders for you: –). If you open notepad you will see a ? and if you try it in most Unicode editors you will see ‼.

But I need it to be a dash. Because I need to run a batch file against all my projects. The paths to the projects now has this en dash in it.

I make a file that holds the names of the projects and I feed them to my batch file.

But when it runs it puts û in place of the –.

What can I do to keep my dash?

NOTE:
I have two batch files. The First runs the second with params from a file.

My First one can be seen here. The second can be seen here. An example of the input file can be seen here.

  • 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-22T01:44:00+00:00Added an answer on May 22, 2026 at 1:44 am

    The en dash character is Unicode code point U+2013. In Windows code page 1252 it is character number 150. The û charcter is character number 150 in code page 437. So it looks like one process is writing a file in code page 1252, while another is reading it using code page 437.

    Ideally, all code pages other than Unicode should be thrown out along with World Wars, small pox, and other relics of the 20th century. Unfortunately, the Windows console makes this rather difficult.

    Since code page 437 is the default console code page for most Windows installations, I suspect that it is this default setting that is causing these problems. (File names are stored by the OS in Unicode, so that part, at least, is correct.) Since code page 437 does not include the en dash character, any system using that code page will have to resort to a fallback mechanism to render the file names, such as a question mark.

    By changing the console code page to something that does support the en dash character, such as 1252, this problem may be corrected.

    You can change this code page with the following command.

    chcp 1252
    

    This command should probably be placed at the beginning of your batch file.

    This is a terrible hack that will be necessary until you can convert your system to something modern that supports Unicode from top to bottom.

    You may also want to try it in Powershell, since PS does support Unicode.

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

Sidebar

Related Questions

Most of our projects are short term and of a promotional nature. As a
Most video codecs are optimized for movies. However, not all videos look like real-world
Apologies, this is a tragically simple question that will bore most of you. I
Most examples (if not all) that I see are the sort of a function
Most rails projects have a very specific version included in their gemfile, right after
Most people are asking about migrating from J2ME to Android. I'm not. I'd like
Most mature C++ projects seem to have an own reflection and attribute system ,
Most OSes use paging for virtual memory. Why is this? Why not use segmentation?
Most of the examples I've found deal with Linq to entities, which is not
Most of our Eclipse projects have multiple source folders, for example: src/main/java src/test/java When

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.