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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T04:15:23+00:00 2026-05-19T04:15:23+00:00

A command-line program outputs a list of file paths. I pipe the output to

  • 0

A command-line program outputs a list of file paths. I pipe the output to another program to do further processing. It all works fine until a file path is encountered that contains a "strange" character (ó, î, ä, etc.).

The cause of the problem seems to be the behavior described next:

Test 1

When I execute this command in cmd.exe,

C:\temp> echo ó > o.txt

the contents of the created file will be the character ¢.

Test 2

I created an input file, o_src.txt, (with my text editor) that contains the character ó.

The command

C:\temp> type o_src.txt

will print this character in cmd.exe
¾

If I execute

C:\temp>type o.txt

(o.txt from TEST 1) the result is ó

Test 3

After execution of the command

C:\temp> type o_src.txt > o_dst.txt

then the contents of o_src.txt and o_dst.txt are the same.

How does this work?

ASCII code of ó: F3 / 243
ASCII code of ¢: A2 / 162
ASCII code of ¾: BE / 190

  • 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-19T04:15:23+00:00Added an answer on May 19, 2026 at 4:15 am

    I believe you need to change the code page using CHCP. Look at these questions for more info.

    Batch script is not executed if chcp was called

    What encoding/code page is cmd.exe using

    Unicode characters in Windows command line – how?

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

Sidebar

Related Questions

I have a command line program, which outputs logging to the screen. I want
I have a small command line program that uses the Team System API. When
How do I execute a command-line program from C# and get back the STD
I've got a PHP command line program running. And I want to connect to
I was looking for a portable script or command line program that can synchronize
Does anyone know of a free Perl program (command line preferable), module, or anyway
I launch the following command line (process) from a Windows VC++ 6 program using
I have a program that I run through the command line and I wanted
I have a program that (amongst other things) has a command line interface that
If you are writing a program that is executable from the command line, you

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.