• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

char values

 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all ! can anyone help me in this


The o/p i am getting is '0'.How is this...does'\u0030' means 0..
plz help
dhana
 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dhana,
The format for unicode escape is,
\ UnicodeMarker HexDigit HexDigit HexDigit HexDigit
where
UnicodeMarker:u
HexDigit: one of 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F
So, you are actually, referring to hex value of 30 which in turn is ASCII value 48, which is a decimal 0. Hope this helps.
Rama
 
dhana rangu
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ramakumar
thanks for ur reply..
but a small confusion

hex 0030 is decimal 48 and ascii 0 right???
dhana
 
Rama Kumar PV
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dhana,
You are correct.. There is a typo error there.. Thanks for pointing it out..
Cheers,
Rama
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic