Why can’t I read international characters from my PC-850 based ASCII file in MATLAB 7.2 (R2006a)?
1 view (last 30 days)
Show older comments
My PC-850 based ASCII file contains the Nordic character å, ä and ö. When I use FGETL to read the file the å, ä and ö characters are displayed as “„“ and if I use the DOUBLE function to convert the character to its corresponding numerical value I get the wrong number, e.g. 8222 for ä when it should be 132.
Accepted Answer
MathWorks Support Team
on 27 Jun 2009
The PC850 codeset is not supported by any locale settings on Windows platform by default. You can use the UNICODE2NATIVE function instead. This will show you that the file is read correctly and you will get the numerical values 132 for the character ä.
0 Comments
More Answers (0)
See Also
Categories
Find more on String Parsing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!