Hi
Here's a test file with it's hex above

6869 a074 6865 6972 3aa0 686f 7720 6172 6520 796f 750a
hi.their:.how are you.

The following program...

(in "/home/me/test_fl.txt"
   (until (eof)
      (setq Ln (line T))
      (prinl Ln)))

results in this....

hiനeir:ਯw are you

I tried this

(load "@lib/import.l")
(in '("bin/utf8" "/home/me/test_fl.txt")

at the top of the program but got...

bin/utf8: Can't exec

I couldn't see a utf8 in /bin or picoLisp/bin

I suspect it's the A0 and : that's messing things up but am not sure what
to do about it.
Perl handles this fine by default but not if I tell it to do utf-8 encoding
i.e.
$ perl read_fl2.pl
utf8 "\xA0" does not map to Unicode at read_fl2.pl line 5.
utf8 "\xA0" does not map to Unicode at read_fl2.pl line 5.
got character h [U+0068]
got character i [U+0069]
got character \ [U+005c]
got character x [U+0078]
got character A [U+0041]
got character 0 [U+0030]
got character t [U+0074]

Any help to sort this out would be much appreciated.

Reply via email to