Tue, 8 Jan 2008 02:22:09 -0800 (PST), /Milan Tomic/:

I have this piece of the code:
(I hope that all of you, with your encoding, can see the second line)

org.w3c.dom.Element e1 = doc.createElement("element1");
Node n1 = doc.createTextNode("ČĆŽŠĐčćžšđ");
[...]

Make sure you don't use non-ASCII characters in your Java source files (by replacing them with \u#### escapes, see the native2ascii [1] tool), or you should specify the source encoding to the Java compiler like:

javac -encoding UTF-8 MyClass.java

[1] http://java.sun.com/j2se/1.5.0/docs/tooldocs/index.html#intl

--
Stanimir

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to