August 12, 2004
UnicodeApplet takes text and converts it to either Java or HTML-style Unicode escape sequences. This is useful for writing test cases that require non-ASCII text, amongst other things.
To add UnicodeApplet to your site, do the following:
The applet understands two parameters, both of which control the text of its interface. java_escapes sets the label of the Java escapes checkbox and html_escapes sets the label of the HTML escapes checkbox. For example, if you wanted the HTML escapes checkbox to be labeled "Html 4.0 Escapes", you could use the following applet tag:
<applet code="UnicodeApplet"> <param name="html_escapes" value="Html 4.0 Escapes"> </applet>
An example usage of these parameters is in the file example.html.
UnicodeApplet requires your users' browsers have JDK 1.1 or above.
The source code for the applet is available in the source directory. To build using ant, you will have to edit the included build.xml file to reflect your own file system.
August 12, 2004
Added mention of ant to the docs. Changed build.xml to create a zip file of the distribution.
July 15, 2004
Added the full set of Java char literal escapes: '\b', etc. Fixed a serious bug in the HTML output. The applet was not producing the correct prefix for HTML hex escapes. I forgot the 'x'. Fixed a broken link in the documentation. Mea culpa. 对不起
July 6, 2004
Initial release.
David Faden
As of July 15, 2004, I am on the lookout for full time employment. A portfolio of my work is available at http://homepages.isunet.net/faden/david/portfolio.html.
This work is licensed under the Creative Commons Attribution-ShareAlike License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/2.0/ or send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA.