Re: Avoiding Escape Sequence....



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
.



Relevant Pages

  • Re: assert()
    ... is because there is an invalid escape sequence. ... were given in a string literal, another backslash would be prefixed to ... if the standard doesn't actually say so. ... Jun, Woong ...
    (comp.std.c)
  • RE: Translating escaped characters
    ... > This is for a configuration file parser, ... should form regexes with raw strings to keep you brain from exploding. ... Python also uses the backslash as an escape sequence in string literals; ...
    (comp.lang.python)
  • Re: fopen question
    ... CStringA is ansi version. ... Probably because he is using only one backslash, ... The \a is escape sequence, can't remember what it currently does, ...
    (microsoft.public.vc.mfc)
  • Re: MIDL and defaultvalue("\")
    ... > Ascii code for backslash). ... backslash as a marker for an escape sequence, ... I start to believe this is a bug in MIDL compiler. ...
    (microsoft.public.vc.atl)

Loading