[Clipart] upload script problem?
Jonadab the Unsightly One
jonadab at bright.net
Thu Mar 31 04:17:30 PST 2005
"Jonadab the Unsightly One" <jonadab at bright.net> writes:
> "Stephen Silver" <ocalocal at btinternet.com> writes:
>
>> It wouldn't make any difference, as you would still get the same
>> conversion from codepage-1252 to UTF-8.
>
> I'm not clear on why that conversion happens.
I'm also not clear on why entities are converted. I thought an entity
identified a specific character, irrespective of charset, but
apparently that is not the case?
>> Storing the file on the server has to be the best way.
Checked in. That should resolve the issue with binary files.
That leaves the character set issue.
> I just looked in the temp directory, and there are files in it
> dating all the way back to December. We should clean that up from
> time to time. What's the easiest *nix command to delete files older
> than (say) one month, in a given directory? I should know this, but
> I don't.
Nevermind. Who needs Unix commands, when you've got Perl installed?
perl -e ' unlink for grep { -M $_ > 30 } </srv/clipart.freedesktop.org/temp/*>; '
--
$;=sub{$/};@;=map{my($a,$b)=($_,$;);$;=sub{$a.$b->()}}
split//,"ten.thgirb\@badanoj$/ --";$\=$ ;-> ();print$/
More information about the clipart
mailing list