my dog learned polymorphism
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Encoding Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Encoding" Watch "Encoding" New topic


Eiji Seki
Ranch Hand

Joined: Feb 15, 2006
Posts: 88

I just realized something... I am used to create all possible files in UTF-8 encoding, so I have most internationalization covered. But should I turn in source codes and any other documents with this encoding?

The only clear information about this is that the choices.txt file must be ASCII and the data file format (I know that the last particular topic a bit confusing and subject of much discussion here).

If I specify that my files are in UTF-8 encoding in the choices.txt would it be enough? Has anyone heard of peaople having problem with this?

Complementing: If it is a problem or if someone else wants to avoid this problem at all, which encoding should be used?

[ March 15, 2006: Message edited by: Eiji Seki ]

SCJD URLyBird (WIP)<br />SCJP 1.5
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11776

Hi Eiji,

I'm sorry, but I am not sure what you are asking here.

Are you talking about having comments / variables / methods that use a language and character set other than English - for example: Portuguese? So you might use n´┐ŻoRegistrado instead of notBooked for a variable name, and you are worried about the '´┐Ż' character?

If so, my general advice would be to try and stick to English characters and words, since that is the language the assignments and the exam are in. So this is probably the language the assessors will use.

However the assignment does appear in at least one other language - Japanese. If your assignment came in a language other than English, and you want to use that language, then I would recommend that you confirm with Sun Education that this is OK (I would assume it will be since the assessor has to be able to read the instructions). Oh, and please satisfy my curiosity by letting me know what other languages it is available in.

Regards, Andrew

The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Ed Tse
Ranch Hand

Joined: Sep 18, 2003
Posts: 183
or do you mean you have localized your application and all string displayed are loaded from resource and those property files are in UTF-8?

SCJP, Pre-SCJD (URLyBird 1.3.1), Teradata Cert'd Prof
Eiji Seki
Ranch Hand

Joined: Feb 15, 2006
Posts: 88
Err... I guess I did not explained it well.
I meant neighter of the mentioned possibilities.

I am using english for all comments and names and no special characters at all (sorry, Andrew, I will not be able to answer your question). But even doing so, I am saving all my files in UTF-8 format. Well, for this project I see no special reason for doing that, so I will keep it simple and use iso-8859-1 instead.
I agree. Here's the link:
subject: Encoding
It's not a secret anymore!