utf 8 - changing encoding UTF8 to UTF8 BOM with rebol -
i have file encoded utf-8. i'd change utf-8 + bom.
this wrote, didn't work:
write/binary %mycontacts.csv insert read/binary %mycontacts.csv #{efbbbf}
what should do?
when doing pipeline of processing, return result of insert series position passed in:
>> str: "ution" >> print insert str {rebol} ution
note if use intermediate variable (as above) variable point beginning of newly inserted content after operation:
>> print str rebolution
if don't want use intermediate variable, want beginning of inserted content, you'll need skip backwards length of content inserted:
>> print skip insert str {rebol} -5 rebolution
but if know inserted @ head of series can use head:
>> print head insert str {rebol} rebolution
so because you're inserting @ head of series byte-order marker, following should work case:
write/binary %mycontacts.csv head insert read/binary %mycontacts.csv #{efbbbf}
Comments
Post a Comment