fixing (invalid coding)

Conny Enström uncurbed at telia.com
Sat May 18 05:33:29 UTC 2013


2013-05-18 07:20, rikona skrev:
> Hello Conny,
>
> Friday, May 17, 2013, 1:32:22 PM, Conny wrote:
>
>> 2013-05-17 22:19, rikona skrev:
>>> I have been doing lots of file copies/restores in a new box. Turns out
>>> many files have 'odd' characters in them that seem to be causing
>>> problems in 12.04. Some software [like grsync] does not work properly
>>> with these files. CLI with sudo seems to do well though - it seems to
>>> be GUI pgms that have trouble. The offending files have '(invalid
>>> coding)' tacked on the end of the name [in the GUI].
>>>
>>> The chrs seem to be in foreign file names, especially German.
>>>
>>> I have hundreds [+] of these in a wide variety of locations. It's not
>>> possible to look through all the files, in thousands of dirs, to find
>>> them. Is there a way to list ALL the files that have this problem
>>> and/or fix it in the file name by, say, substituting a like-sounding
>>> OK chr in the name?
>>>
>>> Thanks...
>>>
>>>    rikona
>>>
>>>
>> I had the same problem but in Swedish, I can't remember what program I
>> used to fix it but take a look at this:
>> http://manpages.ubuntu.com/manpages/precise/man1/convmv.1.html
> An interesting program, but it looks like one has to know the single
> 'input' coding that needs to be fixed, and looks like it can't deal
> with simultaneous multi-language files in the same dir.
>
> It looks like it is not smart enough to be used - safely - on a huge
> number of files with dozens of different languages/codings.
>
> But thank you for the info!
>
> What I was looking for was a pgm that could find all the badly-named
> files + locations on the disk - that might be enough since they can be
> corrected by hand if need be. The 'system' seems to know when they're
> bad, so there might be a way to ID them. It's a 'needle in the
> haystack' problem - find, say, 500, out of 500,000...
>
More on the problem: http://ubuntuforums.org/showthread.php?t=1236012





More information about the ubuntu-users mailing list