[ic] vlink display of UTF8 characters

Peter peter at pajamian.dhs.org
Tue Aug 16 11:29:06 UTC 2016


On 16/08/16 20:34, Peter wrote:
> I'm definitely not going to commit this without a fair bit of further
> review, and I still would like to see patches for vlink.c and tlink.c.
> I have no idea how those would handle it.

Ok, I'm now finding there are places in the code that work with the
binmode and places that work without it.  For example:

[data userdb fname foo] ... returns data that is corrupt without the
binmode but works with the binmode line, but...

[value fname]

... returns data that works without the binmode but is corrupt with it.

At the end of the day it looks like some methods of importing data to IC
are encoding it and some are not.  If it gets encoded then it ends up
double-encoded (or something), unless the binmode line removes one of
the encodings.  To that end I'm abandoning the idea of putting binmode
in vlink and instead I've just written a simple filter that runs the
data through Encode::decode().  This seems to allow the wrong data to
display correctly without causing all sorts of other issues.


Peter



More information about the interchange-users mailing list