Re: Avoiding Escape Sequence....



Wallace wrote:
Hai All,

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...

In addition to previous post, I don't think it's a good idea to store raw characters like that. On somebody else's computer this string might get corrupted if the file is changed and saved from the editor. It's better to play safe and store those over-127 chars as hexadecimal numbers: /x8D/x88/xFF...
.



Relevant Pages

  • Re: Showing problem
    ... >> How can i changhe this code showing how many persons i saved to the ... > better to use char array for phonenumber field too.... ... > then it will overflow and store wrong information. ... language standard) a range of values for type 'int' from ...
    (comp.lang.c)
  • istream >> (my own string class) - low-level solution?
    ... The way my Str class manages itself of course requires that the size ... of the char array to store is known when it is allocated. ... is I don't know how many characters the word I'm going to store has. ...
    (comp.lang.cpp)
  • Re: Showing problem
    ... better to use char array for phonenumber field too.... ... lets say user input something like: ... then it will overflow and store wrong information. ... you have valid data only in first record, ...
    (comp.lang.c)
  • Re: Marshalling Message??
    ... > I need to marshall all the messages in order to send them thru a socket. ... > So I have a big char array, what is the easiest way to store an 8-byte ... int main{ ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Help Needed for Marshalling Message
    ... > marshall all the messages in order to send them thru a socket. ... > char array, what is the easiest way to store an 8-byte integer across ... "the large print giveth, and the small print taketh away" ...
    (comp.lang.c)