Graphics.drawBytes; bug or feature?
Hi, in some old code I have the following construct:
g.drawBytes(myString.getBytes(), 0, x, 0, fm.getAscent());
I only recently found that if the myString holds non latin1 characters this produces bugs (squares in the spot where the chars should be).
I changed it to
g.drawString(myString.substring(0, x), 0, fm.getAscent());
Irrelevant if the last code snippit is more correct or not; is it not a bug that the former failed to render chars like the Ã« (ë ) correctly?