Changing default encoding of MATLAB
87 ビュー (過去 30 日間)
古いコメントを表示
Recently I changed version of matlab from 2020b to 2023b. I cannot change default encoding from UTF-8 to Windows-1252. All of language system settings are correct.
I tried using feature('DefaultCharacterSet', 'windows-1252') but it doesn't work.
Different encoding results in displaying imported data incorrectly. I've imported data from Oracle database. In previous version of matlab with default encoding windows-1252 there was no such problem.
2 件のコメント
Dyuman Joshi
2023 年 9 月 29 日
As you are importing data, try this alternative -
% read in the file
fID = fopen(filename, 'r', 'n', 'windows-1252');
data = fread(fID);
fclose(fID);
採用された回答
Bruno Luong
2023 年 9 月 29 日
I see someone succeed in older MATLAB by editing the file
[matlabroot '\bin\lcdata.xml']
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Large Files and Big Data についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!