[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-wget] Question: It is possible to change/select local filesyste
From: |
Alex |
Subject: |
Re: [Bug-wget] Question: It is possible to change/select local filesystem encoding? |
Date: |
Tue, 30 Oct 2012 20:37:57 +0200 |
User-agent: |
Opera Mail/11.11 (Win32) |
Greetings, Tony Lewis
Thanks for reply.
Yes, i was tried --restrict-file-names=nocontrol. Result is same (Unicode chars
saved at CP866 without conversion).
And, exactly, i'm asking "adding a mode that converted UTF-8 characters to the
local character
set (with escape for any characters that cannot be converted).". Sorry for
misunderstooding. I ask it as
"something like "--local-filesystem-encoding" to convert filenames to given
encoding"
Best regars, Alex
On Tue, 30 Oct 2012 18:21:39 +0200, Tony Lewis <address@hidden> wrote:
wget has an option that directs it to convert characters in the generated
file name:
--restrict-file-names=MODES
where MODES is one of: `unix', `windows', `nocontrol', `ascii', `lowercase',
and `uppercase'
You might try --restrict-file-names=nocontrol to see how close that comes to
the behavior you want. Here is what the info page says about `nocontrol':
If you specify `nocontrol', then the escaping of the control
characters is also switched off. This option may make sense when
you are downloading URLs whose names contain UTF-8 characters, on
a system which can save and display filenames in UTF-8 (some
possible byte values used in UTF-8 byte sequences fall in the
range of values designated by Wget as "controls").
If there are still some issues then I think supporting your request would
require adding a mode that converted UTF-8 characters to the local character
set (with escape for any characters that cannot be converted).
Perhaps others on the list have an idea for how to easily implement this.
Tony