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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T23:57:04+00:00 2026-06-12T23:57:04+00:00

I need to recognize a unicode special character into CMD console, the special char

  • 0

I need to recognize a unicode special character into CMD console, the special char is this: – (it’s like a normal dash but it’s not. It is the U+2013 character according to Wikipedia.

PS: you can find that character in the filename by downloading any file to your PC… Not all the downloaded filenames have that character but many servers transcodes the normal dash by that dash in the filename of the downloaded file and I don’t know why…

If i have an MP3 file with that char in the filename, and then I try to do a “dir /B”command in the cmd then I get this:

C:\>dir /B
this is a - test.mp3

At this part all is ok… But what happens if I copy the filename to the clipboard (direct from the “dir” output) and I try to rename the file?:

C:\>REN "this is a - test.mp3" "badchar.mp3"
El sistema no puede encontrar el archivo especificado.

PS: The error in English says “The system cannot find the specified file.”

So how I can do to recognize that char?

I’ve tried changing the CHCP codepages, tried to start a unicode CMD (CMD /U), tried to do the trick with “copy con” command, tried string character replacing… But nothing…

I don’t want to use third-party apps like massive renamers because strictly I need to recognize natively the character as I need to process some files with the “dir” command…

The problem is that the “dir” command recognizes the character… But after that, how can I test any other command with that file? If only “dir” command recognizes it and I need to open that file into a external app… 🙁

Thanks for reading.

DETAILS:

A sample filename:

Ambassador Inc. – It's All Confusion.mp3

A detailed sample script of the problem:

@echo off
FOR /F "tokens=*" %%# in ('DIR /B *.mp3') do (
    Echo "%%#"
    RENAME "%%#" "fucking unicode dash that i can't delete it.."
    REM any_program.exe "%%#"
)
pause&exit
  • 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-12T23:57:05+00:00Added an answer on June 12, 2026 at 11:57 pm

    Seems like “common unicode problem”. When raster font is selected in console – unicode is not available. Two ways to fix this:

    1. Open console window properties, goto “Fonts” page, choose “Lucida Console” or “Consolas”.
      Press “OK”.

    2. Use alternative consoles. ConEmu for example (I’m the author). This type of software solves many problems of plain console window.

    Now you may dir

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

Sidebar

Related Questions

I need to recognize swipes in all directions ( Up/Down/Left/Right ). Not simultaneously, but
I asked a similar question yesterday, but recognize that i need to rephase it
Need to apply a filter to a file like this: TUPAC_0006:1:1:2554:2356#0/1 0 * 0
i need to know, how to recognize, which button is pressed. Like if i
I need to recognize a alphabet spoken by user into a device's microphone. The
I need to recognize first launch of my application or activity. At this time
I need to recognize some elements drawn with user's finger on device's screen. For
I am working on a on-screen keyboard for Android, and I need to recognize
I'm curious, why does sed need 3 \ just to recognize one? I'd understand
Need a map reduce function by mongo in php This my mongo structure [_id]

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.