I've tried compiling the source above and get the same problem. If you delete the comment in getText I get a slightly different error
error: unmappable character for encoding Cp1252
The jar has compiled properly but it looks to me like BADoclet, which produces the xml file, is trying to map the UTF8 characters in ThaiMoney.java to an 8 bit code page and is trying to guess which one and then failing to map the Thai characters. Erel needs to look at this.
For the time being try saving the compiled jar in the additional libraries. Then edit the source to remove the Thai comment in getText and empty the three arrays of Thai characters then compile again. This produces the xml, attached below, and a new jar in additional libraries. Replace the new jar with the original compiled jar and hopefully it should work.