I need support for Czech letters in Lotus Notes java agent.I made some esting and when I run this code in Eclipse:
String czech = “Český - a, á, b, c, č, d, ď, e, é, ě, f, (g), h, ch, i, í, j, k, l, m, n, ň, o, ó, p, (q), r, ř, s, š, t, ť, u, ú, ů, v, (w), (x), y, ý, z, ž”;
try {
System.out.println("UTF-8 czech: " + new String(czech.getBytes("UTF-8"),"UTF-8"));
System.out.println("ISO-8859-1 czech: " + new String(czech.getBytes("ISO-8859-1")));
System.out.println("ISO-8859-2 czech: " + new String(czech.getBytes("ISO-8859-2")));
}catch(Exception e){};
Result is (UTF-8 shows correctly all characters)
UTF-8 czech: Český - a, á, b, c, č, d, ď, e, é, ě, f, (g), h, ch, i, í, j, k, l, m, n, ň, o, ó, p, (q), r, ř, s, š, t, ť, u, ú, ů, v, (w), (x), y, ý, z, ž
ISO-8859-1 czech: ?esk� - a, �, b, c, ?, d, ?, e, �, ?, f, (g), h, ch, i, �, j, k, l, m, n, ?, o, �, p, (q), r, ?, s, ?, t, ?, u, �, ?, v, (w), (x), y, �, z, ?
ISO-8859-2 czech: �esk� - a, �, b, c, �, d, �, e, �, �, f, (g), h, ch, i, �, j, k, l, m, n, �, o, �, p, (q), r, �, s, �, t, �, u, �, �, v, (w), (x), y, �, z, �
But, when I start same code from Lotus Notes (as an agent), result is (some letters wasn’t recognized):
UTF-8 czech: ?eský - a, á, b, c, ?, d, ?, e, é, ?, f, (g), h, ch, i, í, j, k, l, m, n, ?, o, ó, p, (q), r, ?, s, š, t, ?, u, ú, ?, v, (w), (x), y, ý, z, ž
ISO-8859-1 czech: ?eský - a, á, b, c, ?, d, ?, e, é, ?, f, (g), h, ch, i, í, j, k, l, m, n, ?, o, ó, p, (q), r, ?, s, ?, t, ?, u, ú, ?, v, (w), (x), y, ý, z, ?
ISO-8859-2 czech: Èeský - a, á, b, c, è, d, ï, e, é, ì, f, (g), h, ch, i, í, j, k, l, m, n, ò, o, ó, p, (q), r, ø, s, ¹, t, », u, ú, ù, v, (w), (x), y, ý, z, ¾
How to make it work in Lotus Notes?
thnx