Re: Encoding issues with literal strings (C++)



jasen wrote:

[...]
Thanks for your comments --- however, mabe your newsreader is now
showing the other replies in this thread, where John Fusco pointed
out the problem (the f that follows is being taken as part of the
hex sequence), and later found out that it is standard conforming
behaviour. (now *that*, I found odd :-))

yeah as is evident it's a new one to me.

It makes sense though.... the unicode character set has about 2^24 symbols so C needs a way to represent them all...

It was (but no longer is) my understanding that after the \ only upto three characters were interpreted as digits... (3 octal or x+2hex)

Odd, isn't it? (that was exactly my understanding as well)

In comp.lang.c++.moderated, it was pointed out that C++ has universal
character codes --- after re-checking my copy of the ISO standard (the
1998 one), I see that my \xED could (should) have been \u00ED, and it
wouldn't suffer from the same problem, as the \u is followed by
*exactly* four hexadecimal digits (and there is also the \U which is
followed by exactly eight digits.

Thanks,

Carlos
--
.



Relevant Pages

  • Re: Having trouble with calculating time differences in ms access
    ... Thanks a lot for all your replies really appreciate it. ... formula for the Total Hours but the expressions ended up being "IIf ... digits from the total hours showing up in the tables because i also ...
    (microsoft.public.access.gettingstarted)
  • Re: Simplify formula
    ... how the digits in columns I,J & K are aranged. ... If I have articulated this even remotely close to showing ... >> digits from I,J & K then display contents of I in F. ... The only thing in the formula that chages is ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Creating Percentages
    ... round it or cast to int ... intVar = CType ... > When showing a percentage, how do you remove the all the digits to the ...
    (microsoft.public.dotnet.languages.vb)
  • AutoSum Value Incorrect
    ... it to display the correct total. ... Is there a way to simply force Excel to limit all numbers to 2 digits passed ... Not only showing only 2, but also only to calculate only two and ...
    (microsoft.public.excel.crashesgpfs)
  • Re: field formating...
    ... It should be 11 characters but ... the table is omitting the leading zero's. ... 00092557589 is showing as 92557589. ... eleven digits. ...
    (microsoft.public.access.gettingstarted)