Re: Avoiding Escape Sequence....
- From: "Tom Serface" <tserface@xxxxxxx>
- Date: Tue, 27 Jun 2006 08:36:09 -0700
Stefan is correct about the backslash escape, but are you sure you aren't
trying to store some uninitialized part of the char array. Perhaps you
should memset() the array to all 0's (NULLs) before adding the string to it
just to clear out the junk at the end of the string, or, just store up to
the NULL in the array which looks like the only useful part anyway.
Tom
"Stefan Ascher" <me@xxxxxxxx> wrote in message
news:MPG.1f0b57e654059b49989682@xxxxxxxxxxxxxxxxxxxxxxx
In article <1151402827.560272.270660@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
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Ù?Ïÿ¡Á"
--------------^
--
stefan
.
- References:
- Re: Avoiding Escape Sequence....
- From: Stefan Ascher
- Re: Avoiding Escape Sequence....
- Prev by Date: Re: U icode support for Cabinet SDK
- Next by Date: Re: CString
- Previous by thread: Re: Avoiding Escape Sequence....
- Next by thread: Re: Avoiding Escape Sequence....
- Index(es):
Relevant Pages
|