Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

UTF-8

 
Ranch Hand
Posts: 389
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI
Can someone tell me something abt UTF-8 ?? What kind of questions can we expect??
Tintin
 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Tintin,
Its a type of encoding used for the InputStreamReader and OutputStreamWrite classes. You can specify "UTF-8" as one of the encoding types for these two classes. Generally, one is tested on the constructor basics for the different classes, including the above mentioned two classes. I not aware of any other type of questions being asked on these.
Jai
 
Jaikumar Nair
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
sorry, i missed the "r" in OutputStreamWriter, in the earlier message....
 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
UTF-8 is used to write primitive variables (int, char, etc) in binary form using 1 byte only. You won't see questions about encoding scheme in Programmer exam but I need this to remove deprecated method in my Developer assignment. Hope this help!
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"UTF-8 is used to write primitive variables (int, char, etc) in binary form using 1 byte only."
Where in the world did you get that astonishing bit of mis-information? UTF-8 is use to encode Unicode characters in 1, 2 or 3 bytes using a Reader or Writer. You do not use any Reader or Writer to write primitives in binary form.
The published Sun objectives - section 11 - specifically state that you need to understand character encoding in either platform default or ISO 8859-1.
Bill

------------------
author of:
 
Hey! You're stepping on my hand! Help me tiny ad!
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic