[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xerces-j-dev
Subject:    Re: createTextNode() and special characters
From:       Stanimir Stamenkov <s7an10 () netscape ! net>
Date:       2008-01-08 13:13:54
Message-ID: 47837712.2070305 () netscape ! net
[Download RAW message or body]

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: j-users-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-users-help@xerces.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic