Force ASCII characters in editor

I have some signal files containing a text header followed by binary data. In the past, I have used the MATLAB editor to visually read the text part and the figure out how the binary data is formatted. For some reason, the current version of MATLAB is opening these files with utf16le encoding, making what were pairs of ASCII characters into various Unicode characters and obscuring the information I need. Is there a way to force the editor to display a file using only the ASCII characters? I seem to recall there being different encoding choices in the preferences, but this seems to have vanished in R2026b.

 Accepted Answer

dpb
dpb on 31 Oct 2026 at 14:07
I would recommend to submit this to Mathworks as an official support request/feature change at <Product Support Page> to see if they could supply a workaround.
Meanwhile <ImHex> is a functional hex viewer that can either download/install or use over a web interface.

1 Comment

Not a bad idea, but in the interim I wrote a FileByter class to do what I wanted.

Sign in to comment.

More Answers (0)

Products

Release

R2026b

Asked:

on 30 Oct 2026 at 21:59

Commented:

on 6 Nov 2026 at 23:26

Community Treasure Hunt

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

Start Hunting!