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 - [EMAIL PROTECTED] Freenet Project Official Codemonkey - http://freenetproject.org/ ICTHUS - Nothing is impossible. Our Boss says so.
signature.asc
Description: Digital signature
_______________________________________________ Devl mailing list [email protected] http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl
