Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

@UTF8ENCODE?

May
12,846
164
It seems to be changing 0x0D0A into 0x0D0D0A00.
Code:
v:\> type /x leontiev.txt | head /n5
0000 0000 4c 65 6f 6e 74 69 65 66  20 77 6f 6e 20 74 68 65  Leontief won the
0000 0010 20 4e 6f 62 65 6c 20 43  6f 6d 6d 69 74 74 65 65  Nobel Committee
0000 0020 27 73 20 4e 6f 62 65 6c  20 4d 65 6d 6f 72 69 61  's Nobel Memoria
0000 0030 6c 20 50 72 69 7a 65 20  69 6e 20 45 63 6f 6e 6f  l Prize in Econo
0000 0040 6d 69 63 0d 0a 53 63 69  65 6e 63 65 73 20 69 6e  mic..Sciences in
 
v:\> echo %@utf8encode[leontiev.txt,leontiev.utf8]
0
 
v:\> type /x leontiev.utf8 | head /n5
0000 0000 4c 65 6f 6e 74 69 65 66  20 77 6f 6e 20 74 68 65  Leontief won the
0000 0010 20 4e 6f 62 65 6c 20 43  6f 6d 6d 69 74 74 65 65  Nobel Committee
0000 0020 27 73 20 4e 6f 62 65 6c  20 4d 65 6d 6f 72 69 61  's Nobel Memoria
0000 0030 6c 20 50 72 69 7a 65 20  69 6e 20 45 63 6f 6e 6f  l Prize in Econo
0000 0040 6d 69 63 0d 0d 0a 00 53  63 69 65 6e 63 65 73 20  mic....Sciences
 
It should be possible to do the same thing with TPIPE, though I don't know the syntax. Or perhaps you'd like to try this.
 
Back
Top