Re: Avoiding Escape Sequence....
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Thu, 29 Jun 2006 13:01:39 -0400
The use of 8-bit characters as characters is problematic in the C language. At the
moment, it is only really defined for characters in the range of 001..0176 (0x01..0x7E),
although the standard is a bit vague in what it calls an "execution character set".
In the string below, I see the \ preceding a ", so if it isn't escaped as shown, the quote
mark will be misinterpreted as a closing quote. You might also be having problems with ??
values, e.g., see the ANSI C standard §5.2.1.1:
??= #
??( [
??/ \
??) ]
??' ^
??< {
??! |
??> }
??- ~
and I see several ?? sequences which appear in the string and which are therefore
undefined, and this may be the source of the problem.
joe
On Tue, 27 Jun 2006 15:58:38 +0200, Stefan Ascher <me@xxxxxxxx> wrote:
In article <1151402827.560272.270660@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,Joseph M. Newcomer [MVP]
Wallace says...
when I store a char array with
"20005Admin01151R/??ÿ1Êuü>¼L+'?`?ÀÍ.b<§üY?.'Ö]r>?.IÑ?Ãi Ͽӻ:´Ýù9
.?.ÄTd.câG??i??2?.ú`NÄÈ?<B÷ lº?À'.
pYü¡.??å¹?«?p.\"²ÊB°7Ù?Ïÿ¡Á" values, it is
telling as '"' : unrecognized character escape sequence. How to
overcome this escape sequence?
Thanx in advance...
There is a backslash in this string, you should escape it with another
backslash:
pYü¡.??å¹?«?p.\\"²ÊB°7Ù?Ïÿ¡Á"
--------------^
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- References:
- Re: Avoiding Escape Sequence....
- From: Stefan Ascher
- Re: Avoiding Escape Sequence....
- Prev by Date: Re: #if in .rc file
- Next by Date: Re: Why couldn't reboot my PC?
- Previous by thread: Re: Avoiding Escape Sequence....
- Next by thread: Re: Avoiding Escape Sequence....
- Index(es):
Relevant Pages
|