MATLAB: Textscan can’t read letters with acents

accentsi18nletterstextscan

Hi I am trying to read a csv file of names which include some names with accented letters such as the lower case version of "Á" (can't find a lower case a with an accent on my keyboard). Textscan just ignores the character. Any ideas how we can read these characters with text?

Best Answer

A .CSV file is an ASCII file without character set encoding information. You might need to experiment with different encodings to stumble upon the one the file was created with.
See the documentation for the optional encodingIn parameter to fopen for a discussion.