Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / February 2008

Tip: Looking for answers? Try searching our database.

i18n'ed file and directory names

Thread view: 
lbrtchx@gmail.com - 17 Feb 2008 01:59 GMT
Hi,
~
You could tell I am a freaking Westerner ;-) and maybe to them this
is not an issue at all
~
I was wondering how do you manage naming files and directories using
CJK languages, Arabic, Hebrew, ... if file systems would only take,
what?, LATIN-1 characters?
~
I code in Java and I was wondering about best practices for using
file and directory names that could be used accross Windows, *nix and
MAC OS, specially if those file names are supposed to best match URLs
~
Thanks
lbrtchx
Roedy Green - 17 Feb 2008 12:40 GMT
> I was wondering how do you manage naming files and directories using
>CJK languages, Arabic, Hebrew, ... if file systems would only take,
>what?, LATIN-1 characters?

Windows and Linux take Unicode, with some magic reserved chars.

My rule.  use A-Z a-Z 0-0 _ .

You are pretty safe that will work anywhere.

The problem is going to become more acute with global file sharing, in
much the same way local encodings became a problem with the Internet.
--

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
lbrtchx@gmail.com - 22 Feb 2008 07:58 GMT
On Feb 17, 7:40 am, Roedy Green <see_webs...@mindprod.com.invalid>
wrote:
> My rule.  use A-Z a-Z 0-0 _ .
~
even your rule, namely: [A-Z], [a-z], [0-9], "_", "."
~
has its issues in OSs/FSs that do not fully take into account letter
case
~
For Unix FILE.TXT and file.txt are two different files. Windows would
have issues dealing with such files in the same directory
~
lbrtchx


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.