french characters

  • Thread starter Thread starter Jean Pierre Daviau
  • Start date Start date
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
 
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.
 
Try this -- run cmd /? and note the "/U" switch causing output to a pipe
or file to use unicode encoding.
 
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.
 
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?
 
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
 
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?
 
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.
 
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.
 
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
 
Back
Top