Search This Blog

Saturday, May 4, 2013

Java console in Domino Designer does not display non-ASCII characters


I work on task about zipping of files with non-ASCII characters in their names.
During this work I discovered that Java console in Domino Designer does not display non-ASCII characters. I do not know if it is an issue or it is by design but anyway it is quite annoying and does not help me to debug solution based on LS2J.

If you want to reproduce it yourself please check my steps first.

1) First you have to set UTF-8 in "Text file encoding" section of IDE, otherwise you will not be able to use non-ASCII characters in editor

2) Then create a Java library with something like this:

public class Test { 
public String nonAscii() {
String a = "ØØØ";
System.out.println("some text = " + a);
return a;

3) Then create an agent with the following lotusscript:

Option Public
Option Declare
UseLSX "*javacon"
Use "Test" 
Sub Initialize
Dim zipClass As JAVACLASS 
Dim zipFileObject As JavaObject 
Set zipClass = js.GetClass("Test") 
Set zipFileObject = zipClass.CreateObject 
MsgBox zipFileObject.nonAscii()
End Sub

4) Let's check what we have

As you see, characters are correct because lotusscript displayed them correctly in opposite to Java console.

Another one odd thing is that when I reopened Java code in editor I saw that non-ASCII characters were replaces with something strange.

So I have two questions:

1) Who should I kill What should I do to see non-ASCII characters in Java console ?
2) What is it about this replace of characters?

Thanks in advance.

1 comment:

  1. This bug is in place from 8.5.2, and not yet resolved in 9.0.1 even many customers complain.