Update BOM for Unicode text files

版本 1.0.1 (2.2 KB) 作者: Noam Greenboim
Read and change the Byte Order Mark (BOM) of a unicode file, as other Matlab functions which generate such text files do not add it.
233.0 次下载
更新时间 2020/5/21

查看许可证

When writing a text file with special characters (such as Hebrew, Russian or others), it is common to include a unique mark at the first bytes of the file.
However, Matlab functions such as writetable, that can be set to unicode, are not including this mark.
This function reads the file as binary, and extracts the marker. It can add it (if missing), change it, remove it, and write the result to the same file or to another one.

引用格式

Noam Greenboim (2024). Update BOM for Unicode text files (https://www.mathworks.com/matlabcentral/fileexchange/75708-update-bom-for-unicode-text-files), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2020a
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

版本 已发布 发行说明
1.0.1

Support also BOM removal

1.0.0