readtable does not like umlauts in file name

1 次查看(过去 30 天)
Since R2016 I am not able to open a file with readtable when it contains a german umlaut:
ex =
MException with properties:
identifier: 'MATLAB:spreadsheet:book:fileOpen'
message: 'Unable to open file '/xxxx/Übersichtsliste_Test.xlsm' as a workbook. Check that the file exists, read access is available, and the file is a valid spreadsheet file.'
cause: {0×1 cell}
stack: [3×1 struct]
K>> ex.stack(1)
ans =
struct with fields:
file: '/xxxxx/R2018b/toolbox/matlab/iofun/readtable.m'
name: 'readtable'
line: 216
With R2015b it works.
Do I miss something?

回答(1 个)

Sihui Liu
Sihui Liu 2019-3-7
Hi Corinna,
I understand that you are having trouble importing a file with readtable.
However, I couldn't reproduce your issue on R2016a or R2016b from my end. Here is what I tried:
  • Create an excel file, named as 'Übersichtsliste_Test.xlsm';
  • saved it on my desktop;
  • excuted readtable('Übersichtsliste_Test.xlsm')
Note that readtable imported data in my file correctly.
Please make sure that the file path is correct.
  6 个评论
Corinna von Montigny
The path to the file is correct. As I can read the file without problems with 'xlsread'.
>> fopen('Übersicht.xlsm')
ans =
3
I just opened a bug report w/r to this. Sorry, I do not remember the ticket number.
Guillaume
Guillaume 2020-1-27
So it is restricted to readtable. Raising a bug report is probably the best way to get the issue resolved.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

产品


版本

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by