From: "Robert L." Newsgroups: comp.os.msdos.djgpp References: Subject: Re: foreign char ( almost corect ) Lines: 33 X-Newsreader: Microsoft Outlook Express 4.72.3155.0 X-MIMEOLE: Produced By Microsoft MimeOLE V4.72.3155.0 Message-ID: Date: Sun, 26 Mar 2000 04:24:24 GMT NNTP-Posting-Host: 216.209.203.70 X-Trace: news20.bellglobal.com 954044664 216.209.203.70 (Sat, 25 Mar 2000 23:24:24 EST) NNTP-Posting-Date: Sat, 25 Mar 2000 23:24:24 EST Organization: Sympatico To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com i change a line in config.sys and autoexec.bat i put the good keyboard map, and the good country. BTW, i test it with msvc, and it's error. The previous test i make was with "\x90t", this is why it was good. Thanks. Jason Green a écrit dans le message ... >"Robert L." wrote: > >> Now >> cout<<"\x90"; >> work well. > >It would be useful to know what you did to fix this. > >> But >> cout<<"\x90crivez"; // écrivez == write >> doesn't work, it say the same error ( escape secquence out of range ) > >This is expected behaviour for standard C/C++. If MSVC compiles this >without error then MSVC has a bug, not DJGPP. > >All hex digits after the \x are read as being a single character. So >the first character of the string is interpreted as 90C hex, which of >course is out of range. > >You should use 3-digit octal: > >cout << "\220crivez";