Skip to content

Commit

Permalink
preventing matlab 2022b converting string to unicode
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq authored Feb 10, 2023
1 parent 9ce91fc commit 0448eb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions savebj.m
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@
else
fid = fopen(filename, writemode, fileendian);
end
fwrite(fid,json);
fwrite(fid,uint8(json));
fclose(fid);
end

Expand Down Expand Up @@ -1060,4 +1060,4 @@
newdata=swapbytes(data);
else
newdata=data;
end
end

0 comments on commit 0448eb1

Please sign in to comment.