New answers tagged

1

Chances are that if you just decode the %XX URI encodings, you'll get UTF-8 encoded characters. In zsh: autoload zmv LC_ALL=C zmv '(**/)(*%*)' '$1${2//(#b)%(??)/${(#):-0x$match}}' If as noted by Gilles, that � substitution character is for a 0xc3 byte (which in iso8859-1 is a letter which would explain why it hasn't been URI-encoded contrary to 0x9c which ...


0

Konsole supports the encodings which Qt knows how to convert to/from Unicode. It uses the QTextCodec class (see documentation which lists the supported encodings) which includes many but not necessarily all possible encodings which you may have installed on your system. When you run Konsole, you can select (in the Advanced tab) an encoding from those which ...


0

Apparently LibreOffice tries to use ISO-8859-1 by default, which is causing the problem. In response to this bug report, a new parameter --infilter has been added. The following command produces U+2014 em dash: libreoffice --convert-to csv --infilter=CSV:44,34,76,1 --headless --outdir dir file.xlsx I tested this with LO 5.0.3.2. From the bug report, it ...


0

You could try, $ libreoffice --convert-to \ > csv:"Text - txt - csv (StarCalc)":"44,34,0,1,,0" \ > --headless --outdir dir file.xlsx Here, you have a very detailed help about.


1

I know that this has already been resolved for OP, but for anyone stumbling upon this question, this seems to be a 10.11 El Capitan only problem. I tried and was able to delete files with this character in OS X 10.4 Tiger and OS X 10.10 Yosemite, so it very likely works on the other ones.


3

The command-line arguments appear in this file as a set of strings separated by null bytes ('\0'), with a further null byte after the last string. It is all you need. You have got command and its arguments separated by null byte \0. Encoding of the characters is based on the locale, but it should not really matter. Do you have some specific example ...


0

The file command can tell you the type of a file (ASCII, unicode, binary, etc.). $ file my_file.txt my_file.txt: ASCII text So you can just check to see that the output contains the word "ASCII" and this should work: if [[ file my_file.txt | grep -i ascii ]] ...



Top 50 recent answers are included