Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
I don't think you can detect encoding with a Scanner. You can instruct a Scanner to use a particular encoding with its constructors, and some of the better‑known encoding are specified in the Charset class, but I do not think you can instruct a Scanner to detect an encoding from the input. You can read more about encodings written by Joel Spolsky.
Good night. Drive safely. Here's a tiny ad for the road:
Free, earth friendly heat - from the CodeRanch trailboss