avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Douglas Campbell <deegs...@yahoo.com>
Subject json encoding/decoding fixed type
Date Tue, 05 Oct 2010 17:21:41 GMT
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.


      

Mime
View raw message