bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-apl] how to read utf-8 file into the APL string


From: Alexey Veretennikov
Subject: Re: [Bug-apl] how to read utf-8 file into the APL string
Date: Tue, 20 Dec 2016 13:57:07 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (darwin)

Thanks! Works as charm!

Juergen Sauermann <address@hidden> writes:

> Hi Alexey,
>
> you can probably use 18⎕CR and 19 ⎕CR to convert beween the bytes read
> from an UTF8 encoded file and the characters being encoded (and back).
>
> See section 3.3 Dyadic ⎕CR in info apl.
>
> /// Jürgen
>
> On 12/20/2016 01:39 PM, Alexey Veretennikov wrote:
>
>  Hi,
>
> I'm trying to read the file in UTF8 to the APL string.
> Using the following:
>
>       )HOST 'cat' '/tmp/f.apl'
> ∇R←f x
> R←x+1
>
> 0
>       fun ← FIO∆read_file '/tmp/f.apl'
>       fun
> ∇R←f x
> R←x+1
>
> Which is apparently broken.
>
>

-- 
Br,
/Alexey



reply via email to

[Prev in Thread] Current Thread [Next in Thread]