New answers tagged character-encoding
The same can be done with paps; #!/bin/bash #This script converts UTF-8 txt to postscript paps | lpr Sometimes you need to specify the prinqueue; #!/bin/bash # This script converts UTF-8 txt to postscript paps | lpr -P lj Paps does a much better job then cups' texttops.
Try: unoconv -f txt -e FilterOptions=UTF8,LF Foo.docx It seems a bug and was reported here. If it doesn't work, maybe your LibreOffice doesn't support docx file. See more details here.
Try adding this to your .bashrc export LC_ALL=en_US.UTF-8 export LANG=en_us.UTF-8
As workaround, and if the files are distinguishable by the ascii characters, try renaming the file using wildcards, i.e. mv Idez*jpeg renamed.jpeg
Not taking into account the NFS part of the problem, some days ago I had a similar issue while trying to delete a file with no name / blank name. Well, actually, it was not blank - its name was the octal code for the end of transmission character (\004). How it was created in there, no idea. However, what I did to remove it was to echo its filename and ...
Basically, this may be a problem of mismatch between your locale, which is set to UTF-8, and the encoding of your Chineses character file, which may be encoded in gbk, gb2312, gb18030, or Big-5. All those encoding listed above are incompatible with UTF-8. Now, let's assume gbk is the encoding of your file. So when you try to show the contents of the file, ...
With GNU recode: recode html < file
From How can I decode HTML entities? on StackOverflow, you may be able to implement a simple perl solution such as perl -MHTML::Entities -alne 'print decode_entities($_)' email.txt e.g. using your example text $ perl -MHTML::Entities -alne 'print decode_entities($_)' email.txt Wide character in print at -e line 1, <> line 1. chciałabym zapytać, czy ...
echo -e "\x01\x19" should do the trick.
\222 in the CP-1252 character encoding is ’, i.e. U+2019 RIGHT SINGLE QUOTATION MARK in Unicode. To instruct Emacs that the file is in the CP-1252 encoding, run C-x RET r (revert-buffer-with-coding-system) and select cp1252. To then save the file in UTF-8 (the de facto standard encoding on Linux and other unix systems), run C-x RET f ...
Top 50 recent answers are included