calling dir() with a file path that uses both English and Korean char.
2 次查看(过去 30 天)
显示 更早的评论
I am trying to perform operations on files in a shared location. Part of the script that I have been using calls file=dir('path') with a string containing the expected file location. The previous location was all english and the script ran with no issue. Recently part of the path was changed to Hangul (containing both english and korean char). My machine is in english. (Windows and R2018a)
simply using "copy address as text" and copy-pasting into the script yeilds boxes in the text and it is later interpreted internally as "????" mid-string. So that is not a solution path.
Is it possible to save the path as a unicode text doc and have matlab import and handle it in that way?
Are there other ways to handle this operation?
2 个评论
Jan
2019-6-7
"using "copy address as text""
Where did you copy which address as text?
"copy-pasting into the script yeilds boxes in the text"
Does this mean that Matlab's editor does not display the Unicode characters correctly? If so, this only concerns the display in the editor. But does the code work correctly?
"is later interpreted internally as "????" mid-string"
What is a "mid-string" and how do you determine, how what is interpreted?
What aboud using uigetdir?
回答(1 个)
Debasish Samal
2019-6-7
Follow the below link to the answer. It is similar to your issue.
Good luck!
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 File Operations 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!