I think it should be the same as where you got the bytes from. For example, if you used String.getBytes(String charsetName) to transform the String to bytes, then it would be charsetName.
On Tue, Oct 5, 2010 at 10:21 AM, Douglas Campbell <[email protected]> wrote: > Having a little trouble doing this in either 1.2 or 1.4. > > When I create the TextNode for the fixed data, what encoding should I use for > the string? > > ASCII, UTF-8? > > i.e. given a byte[] array > > how should I construct the string? > > new TextNode(new String(buf, "ASCII"))? > > when I use UTF8, the decoding fails complaining that the expected sizes don't > match. > > > >
