report generator can't handle blanks in path name
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello,
in order to use the report generator of Matlab I created the needed template sheet with a relative path to an
image which shall be loaded.
All works fine as long as the image's full path does not contain a blank. Thus, after moving everything to a new
location (the relative path stays the same) the image can't be found because of blanks inside the full path:
ERROR: Image not found. URI: file:///D:/NewLocation/Path%20With%20Blanks/relPath/imagefile.png
The blanks are replaced by '%20' and the full path makes no sense, anymore.
Any suggestions?
Many thanks,
Timo
2 Kommentare
Walter Roberson
am 28 Jan. 2020
The blanks should be replaced with %20 . What is being displayed is a URI, and URI's use percent encoding
The generic URI syntax recommends that new URI schemes that provide for the representation of character data in a URI should, in effect, represent characters from the unreserved set without translation, and should convert all other characters to bytes according to UTF-8, and then percent-encode those values.
The table of unreserved characters is shown further up on the page, and does not include space, so space characters in URI should be encoded as %20.
Antworten (0)
Siehe auch
Kategorien
Mehr zu MATLAB Report Generator finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!