Re: Problem with swedish letters
Gunnar Heikkilä <[email protected]>
| Newsgroups | gmane.comp.web.pixory |
|---|---|
| Message-ID | <[email protected]> |
Joe,
'?' is not a very good choice. While Windows allows almost any obscure
characters from swedish or other strange languages in file names,
the following characters are specifically NOT allowed: \/:*?"<>|
While '?' will sort of work in Unix, you still need to escape it with
a backlash when used in file names, so it does complicate things a bit.
I would strongly recommend you to translate to alphanumeric characters
only, plus the "normal" limiters '_', '-', '.'. If you want to put an
elegant touch to your translation you could consider replacing strange
characters with their nearest ascii "look-alike". E.g. 'Ä' becomes 'A'
etc., and then translating to an 'X' for characters without any
natural look-alike. As a special case, 'space' could be translated to
'_' (since spaces are commonly used in Windows file names).
This would be simple to implement if you restrict the look-alike
translation to the Latin-1 character set. For us international users
such a look-alike feature would be much appreciated.
By the way, what happens today if a Windows client downloads an
archive from a Unix Pixory server, where two filenames differ only in
upper/lower case? As windows is not case-sensitive, this should be
some sort of a name clash? On the other hand, if you implement the
"numeric prefix" this will be solved anyway...
/Gunnar
> I'll follow your proposed scheme, though I think I"ll follow the
> Unix/Web traditions for handling unrecognized characters and replace
> any non-ascii characters with '?'.
>
> regards,
>
> joe
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/pixory-beta/
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/