It's kinda basic but surprised me a lot.
Im using on WSL (Unubtu 18.04 LTS) poppler-utils for managing PDFs, usually it's as simple as
cd <DIR of bunch of PDFs>
pdfunite `ls` out.pdf
as pdfunite SYNOPSIS just requires list of PDFs to merge and output file name.
But recently I got some files with characters specific for my county as ó, ś, ź and then I'm getting following I/O error:
I/O Error: Couldn't open file 'Og<c3><b3>rki': No such file or directory.
Syntax Error: Could not merge damaged documents ('Og<c3><b3>rki')
(Ogórki witch is polish for cucumbers ;) )
C3 B3 of course corresponds to UNICODE:
U+00F3 ó c3 b3 LATIN SMALL LETTER O WITH ACUTE
But is there an option to force ls to pass such chars in correct format as well when they are substitued?
Or problem is elsewhere, as when I'm substituting them with echo:
echo `ls`
I'm getting correctly formatted UNICODE chars.
Thanks in advance!