Friday, 17 November 2017

Name from NetSurf has underscores for percents

Is this a bug?

If you open this link in NetSurf :-
https://hu.123rf.com/photo_34178186_soil-grooves-farming-earth-soil-grooves-over-field-for-crop-planting-on-rural-countryside-farm-lands.html

The webpage shows a JPEG of a ploughed field.
Then if you menu>Object>Object>Save... and drag/drop the jpeg onto
an application eg Artworks, ChangeFSI etc the load fails because the
file name is not correct.

(quoting Bernard Boase)-

NetSurf has output the file name as

34178186-talaj-hornyok-mez_C5_91gazdas_C3_A1gi-earth-talaj-b
ar_C3_A1zd_C3_A1k-f_C3_B6l_C3_B6tt-mez_C5_91-n_C3_B6v_C3_A9n
y-_C3_BCltet_C3_A9si-a-vid_C3_A9ken-m/jpg

but the underscores should be percent signs to code for letters with
Hungarian diacritics in Unicode:

34178186-talaj-hornyok-mez_C5%91gazdas%C3%A1gi-earth-talaj-b
ar%C3%A1zd%C3%A1k-f%C3%B6l%C3%B6tt-mez%C5%91-n%C3%B6v%C3%A9n
y-%C3%BCltet%C3%A9si-a-vid%C3%A9ken-m/jpg

whereupon it works into the apps.

--
John Rickman

No comments:

Post a Comment