unicode2ascii

版本 1.0.0.0 (1.6 KB) 作者: Stefan Eireiner
Converts unicode endcoded files to ASCII encoded files
6.8K 次下载
更新时间 2006/4/11

无许可证

UNICODE2ASCII Converts unicode endcoded files to ASCII encoded files
UNICODE2ASCII(FILE)
Converts the file to ASCII (overwrites the old file!)
UNICODE2ASCII(SOURCEFILE, DESTINATIONFILE)
Converts the contents of SOURCEFILE to ASCII and writes it to DESTINATIONFILE
ASCIISTRING = UNICODE2ASCII('string', UTFSTRING)
Converts the UTFSTRING to ASCII and returns the string.

The unicode header and all 0-bytes will be deleted. If there are characers with encoding > FF then the file will continue to contain garbage because there is no ASCII representation for those characters. But about 99% of the files should convert ok.

引用格式

Stefan Eireiner (2024). unicode2ascii (https://www.mathworks.com/matlabcentral/fileexchange/10686-unicode2ascii), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R13
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Text Files 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0

added functionality to convert strings.