[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #55452] fopen() does not support encoding argu
From: |
Andrew Janke |
Subject: |
[Octave-bug-tracker] [bug #55452] fopen() does not support encoding argument |
Date: |
Fri, 11 Jan 2019 21:29:44 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36 |
URL:
<https://savannah.gnu.org/bugs/?55452>
Summary: fopen() does not support encoding argument
Project: GNU Octave
Submitted by: apjanke
Submitted on: Sat 12 Jan 2019 02:29:42 AM UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Matlab Compatibility
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Any
_______________________________________________________
Details:
Matlab's fopen() supports a fourth input and output argument, encoding, that
specifies the encoding the file is in.
https://www.mathworks.com/help/matlab/ref/fopen.html
fileID = fopen(filename,permission,machinefmt,encodingIn)
...
[filename,permission,machinefmt,encodingOut] = fopen(fileID)
It would be nice if Octave supported this. That would allow you to read in or
write out files that are not in your locale's native encoding. That would be
useful, e.g., when doing international data analysis projects, or if you have
data files in mixed encodings for some other reason.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?55452>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #55452] fopen() does not support encoding argument,
Andrew Janke <=