altosui: Serial line is in UTF-8 encoding. Deal with it.
authorKeith Packard <keithp@keithp.com>
Fri, 27 Aug 2010 06:50:51 +0000 (23:50 -0700)
committerKeith Packard <keithp@keithp.com>
Fri, 27 Aug 2010 06:50:51 +0000 (23:50 -0700)
commita16db143fc7ca72dc91e7989420049192114642d
tree3a54eb04c432e8d8b553588cd95458a195fa9413
parent0942912163255523d923140c01afbdb5da1c19b5
altosui: Serial line is in UTF-8 encoding. Deal with it.

We read bytes from the serial line and need to convert each line into
a string. So, save the bytes and at EOL, pass the whole mess to the
string constructor with the appropriate encoding info.

Signed-off-by: Keith Packard <keithp@keithp.com>
ao-tools/altosui/AltosSerial.java