french characters

J

Jean Pierre Daviau

Hi everybody,


My cmd screen prints the french caracters normally and correctly
but if I redirect to a file:
call /? >out.txt
all the french characters are omitted....


--
Thanks for your attention.

Jean Pierre Daviau
--
Easyphp1.8 with Apache1.3.24
DEVC++, borland 5.5
windows Xp
asus p4 s533/333/133
Intel(R) Celeron (R) CPU 2.00 GHz
Processor Radeon7000 0x5159 agp
 
M

Matthias Tacke

Jean said:
Hi everybody,


My cmd screen prints the french caracters normally and correctly
but if I redirect to a file:
call /? >out.txt
all the french characters are omitted....
Ok, let us proof you are wrong ;-)

type nul >out.txt
chcp >>out.txt
call /? >>out.txt
echo ===================================================== >>out.txt
chcp 1252 >>out.txt
call /? >>out.txt
chcp 850
more out.txt
notepad out.txt

The first text you see with more is correct, the second not.
With notepad its vice versa.

It is always the same text, but different encodings. You need the same
encoding when viewing as was used to create a text.
 
D

Dean Wells \(MVP\)

Try this -- run cmd /? and note the "/U" switch causing output to a pipe
or file to use unicode encoding.
 
M

MC

Bonsoir !

Comme l'a suggéré Matthias, ça peut se régler en choisissant le bon
code-page.

Je pense qu'il suffit de taper CHCP 850 [Entrée]
pour régler le problème.
 
J

Jean Pierre Daviau

Ok, let us proof you are wrong ;-)
Je pense qu'il suffit de taper CHCP 850 [Entrée]

Yes. Very well.

The switch /U gives me this some kind of squares and letters I
cant even copy/paste? What would be the encoding for this?
 
M

Matthias Tacke

Jean said:
Ok, let us proof you are wrong ;-)
Je pense qu'il suffit de taper CHCP 850 [Entrée]

Yes. Very well.

The switch /U gives me this some kind of squares and letters I
cant even copy/paste? What would be the encoding for this?
cmd /U outputs unicode characters (UTF-16 LE without BOM=byte order mark)
as you can see here <http://en.wikipedia.org/wiki/List_of_Unicode_characters>

You should always mention the application you are referring to.
Notepad for example can handle the cmd /u output (not if appended to
different encodings)

HTH
 
D

Dean Wells \(MVP\)

What application or command are you using to veridy that the characters
are not being rediected?

--
Dean Wells [MVP / Directory Services]
MSEtechnology
[[ Please respond to the Newsgroup only regarding posts ]]
R e m o v e t h e m a s k t o s e n d e m a i l


Jean Pierre Daviau said:
Ok, let us proof you are wrong ;-)
Je pense qu'il suffit de taper CHCP 850 [Entrée]

Yes. Very well.

The switch /U gives me this some kind of squares and letters I cant
even copy/paste? What would be the encoding for this?
 
J

Jean Pierre Daviau

cmd /u move /? >out.txt
notepad out.txt
What application or command are you using to veridy that the
characters are not being rediected?

Edit Plus 2


It works ok with notepad.
 
D

Dean Wells \(MVP\)

My guess is the application simply doesn't support the required
character set ... unless you've had this working in precisely this
manner in the past.
 
J

Jean Pierre Daviau

Dean Wells (MVP) said:
My guess is the application simply doesn't support the required
character set ... unless you've had this working in precisely
this manner in the past.

It just support utf, utf 7, utf 8
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

setting screen in ansi on the fly 1
mkdir %_folder% 1
registery keys 4
cmd and win98 1
special characters 18
impossible ipod? 4
command line VS cmd file 3
pushd 4

Top