On Fri, Mar 31, 2006 at 07:57:53PM -0800, Dashkal wrote: > Little background: I'm writing a java FCP library as part of a larger > project to compete with Fuqid. > > Question 1: What character encoding should I expect when translating > return messages from the FCP port? > > Right now I'm using ISO-LATIN-1 and am simply ignoring the issue, but I > get the distinct feeling that would break if say NodeInfo.JavaVendor or > some such string happened to have extended characters in it.
Haven't addressed the issue :). Probably ISO-8859-1. > > Question 2: Can I assume a specific end of line sequence? IIRC we use \n but I'm not sure... I suggest you pull freenet/support/io/LineInputStream and use that. :) > > If so, that would simply things if I find myself needing to manually > decode the data from the message. (There seems to be no safe way to use > InputStreamReader and switch back to raw use of the InputStream for > non-encoded data like the Data block of DataChunk messages) -- Matthew J Toseland - toad at amphibian.dyndns.org Freenet Project Official Codemonkey - http://freenetproject.org/ ICTHUS - Nothing is impossible. Our Boss says so. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: <https://emu.freenetproject.org/pipermail/devl/attachments/20060401/93b41a31/attachment.pgp>
