String COPYRIGHT = "\u00a9"";
String REGISTERED = "\u00ae";
String EURO = "\u20ac"
import java.awt.*;
public class TestUnicode extends java.applet.Applet {
public static final String COPYRIGHT = "\u00a9";
public static final String REGISTERED = "\u00ae";
public static final String EURO = "\u20ac";
public void init () {
setLayout(new FlowLayout());
Label a = new Label(COPYRIGHT + " R\u00e9al Gagnon");
Label b = new Label(REGISTERED + " R\u00e9al's Software "
+ " price : 100 " + EURO);
add(a);
add(b);
}
}
Output :
A list of Unicode characters is available at the
Unicode organization Web site.
Here a quick list for accented letters :
| á | \u00e0 | Á | \u00c0 |
| à | \u00e1 | À | \u00c1 |
| â | \u00e2 | Â | \u00c2 |
| é | \u00e9 | É | \u00c9 |
| è | \u00e8 | È | \u00c8 |
| ê | \u00ea | Ê | \u00ca |
| î | \u00ee | Î | \u00ce |
| ç | \u00e7 | Ç | \u00c7 |
Written and compiled by Réal Gagnon ©1998-2008
[ home ]