Prevent using special characters in file and folder names?

I've recently begun adding windows clients to my network. In doing so, I've found that on my file shares from OS X server, the windows clients are unable to see files and folders which have names containing special characters such as / ? < > \ : * | ”
Unfortunately my accounting department has been creating files with these characters in their names for several years. I would like to find if there is a way to prevent them from using a defined set of characters in the file and folder names to prevent them from "accidentally" doing so in the future.
I've found that by turning off streams support on SMB in OS X server, that my windows clients can at least see that a file or folder should exist, albeit with a corrupted file name. Removing the special characters from these names allows the proper name to become visible and the file accessible.
Any info would be greatly appreciated.

(_seb_) wrote:
> Gary White wrote:
>> On Sun, 19 Nov 2006 19:15:04 +0100, "(_seb_)"
<[email protected]> wrote:
>>
>>> "ça alors: it's a déjà-vu"
>>>
>>> How can I encode this so it's valid as a
directory name, yet can be
>>> displayed as intended when the name is output to
the page.
>>> urlencode() does not do the job, neither does
htmlentities()...
>>
>>
>> What's wrong with:
>>
>> $l="ça alors: it's a déjà-vu";
>> print urlencode($l)."<br>\n";
>> print htmlspecialchars($l);
>>
>> Gary
>
>
> I know that, but what is the name of the directory? It
has to be a real
> directory name, not a string stored somewhere.
>
> What's a valid encoding for a directory named "ça
alors: it's a
> déjà-vu"? I can call a folder like this on my
Mac, but it won't work on
> any server...
>
>
>
PS: basically it's not a url encoding issue.
I can url encode "ça alors: it's a déjà-vu",
and pass it in a url query string. But my issue is not
with an url query string, it's with an actual URL, that is,
the actual name of the directory. It
can't be "ça alors: it's a déjà-vu". But I
want to allow the user to name their directory like that
if they want. So I need a way to encode this into characters
that can be used for an actual
directory on the server.
seb ( [email protected])
http://webtrans1.com | high-end web
design
Downloads: Slide Show, Directory Browser, Mailing List

Similar Messages

  • Handling illegal characters in file and folder names

    Due to the cross-platform nature of our DAM, some characters which are valid on OSX are not valid on our DAM, like :*?\"<>|;#. So I want to prevent that users using our Drive connector create files or folders containing these characters.
    Is it possible to present the user an appropriate error message in this case? In other words, what Exception should be thrown? I've tried a general RemoteHandlerException, this results in a login dialog in OSX Finder, not just an error that the file/folder cannot be created.

    Cross posted
    http://forum.java.sun.com/thread.jspa?threadID=768693&tstart=0

  • Use Automator to move files and folder structure to another folder, retaining destination contents

    I have been struggling trying to setup Automator to move files and folder structure to another folder, retaining the destination contents.  Basically, I need to add files at the destination, within the same folder structure that exists at the source.  Here's some details about the scenario:
    -I have PDF files that I create on a seperate computer than I my daily use machine
    -For security reasons, the source computer doesn't have access to any shares on the destination computer
    -The destination computer has access to shares on the source computer
    -I want to delete the original PDFs at the source after they are moved or copied
    I haven't been able to get Automator to move or copy the folder contents (files and subfolders) without dropping everything copied at the top level of the destination, resulting in many duplicate folders and a broken folder structure.
    So far I've only had luck getting this to work at the command line, but I'd really like to have this setup in Automator so that I could have either a service or application that I could use for any folder, prompting for the source and destination folders.  I'm a relatively new Mac user with limited Linux experience, so this is the command that I've cobbled together and currently accomplishes what I'm looking for:
    ditto /Volumes/SMB_Temp/SOURCE ~/Desktop/Documents/DESTINATION
    cd /Volumes/SMB_Temp/SOURCE
    find . -type f -name "*.pdf" -exec rm -f {} \;
    Thanks for any ideas!

    If you have a command-line syntax that works, why not just create an Automator workflow with a single 'Utilities -> Run Shell Script' action, where that action has your (working) shell commands?
    Seems way, way simpler to me than trying to reinvent the wheel and transcribe shell commands into individual Automator actions

  • Why are my file and folder names changing randomly? (Appending Dates)

    Recently Finder has taken to randomly (it seems) appending the date to various folder and file names. For example today I dragged a file from Destop into Documents folder and the file name changed immediately after the move:
    From: wedding-invite.pdf
    To: wedding-invite 12/11/2013 12/11/2013 12/11/2013 12/11/2013 12/11/2013 12/11/2013 12/11/2013 12/11/2013 12/11/2013 12/11/2013 12/11/2013 12/11/2013 12/11/2013 12/11/2013 12/11/2013 12/11/2013 12/11/2013 12/11/2013 12/11/2013 12/11/2013.pdf
    This has happed to folder names as well with different amounts of replication and different dates (usually today's date or document creation date). It happens to some files and folders but not to others. Those that it does happen to have no UNDO trail for the particular action (like Undo Move for example).
    Very frustrating - any assistance would be appreciated.
    I am running nothiong special (I do run Google Drive on my iMac). Also Time Machine.

    Thanks! I found this on the folder actions setup:

  • Bring back colored file and folder names

    The dots have got to go!!!  Make them an option if you need to, but GIVE US BACK THE HIGHLIGHTING OF FILE NAMES, FOLDER NAMES, AND FOLDERS!!!!!!!!
    WHEN ARE YOU GOING TO LISTEN TO YOUR CUSTOMERS --- THIS IS NOT A GOOD IDEA

    These are user-to-user forums where everyday folk (volunteers) post questions and offer answers (technical support) to each other.
    Apple involvement. Apple may respond to questions but does not formally provide technical support on the Site. Any information that is provided by Apple or Apple employees is offered on an "AS IS" basis without warranties of any kind.
    Post your concerns in the Product Feedback forum. 
    Posting in CAPS LOCK Is often seen as screaming and is not appreciated.  It's also very hard to read. 

  • Using special characters (Spanish characters) in Activities name

    Hi everyone,
    ?:| Does anyone knows if I need to do any extra configuration in my Operating System/Data Base if I'm using special characters (accents) in activities/transitions name. Is there any problem using these type of characters?
    Thanks a lot.
    Edited by varriaga at 01/04/2007 2:17 PM

    in ALBPM 5.7 you don't need any specific setup to use spanish characters, since we store all information as NVARCHARS.
    In Studio, we store projects files in UTF-8, so no problem either.
    MAriano
    PS: you are just asking or you do have a problem? if you do, contact support and describe your problem.
    MAriano Benitez
    AquaLogic BPM 5.7 SP1 is now available!

  • Hi ! i am using mac air i download from app store IDESKTOP when i open it its delete all my file and folder on my mac, hi ! i am using mac air i download from app store IDESKTOP when i open it its delete all my file and folder on my mac

    hi ! i am using mac air i download from app store IDESKTOP when i open it its delete all my file and folder on my mac, hi ! i am using mac air i download from app store IDESKTOP when i open it its delete all my file and folder on my mac

    Here you can contact the developer.
    (Notice, I'm posting this line only once. Not 4 times. )

  • The specified file or folder name is too long,the url path for all files and folders

    The specified file or folder name is too long,the url path for all files and folders must be 260 character or less
    can we increase this limit?
    MCTS,ITIL

    Hi,
    As I understand, you want to increase the length of URL path in SharePoint 2010.
    Per my knowledge, this limit cannot be increased. SharePoint limits URL length because all relative URL links are stored in the clear forms on the SharePoint content DB and often this links are used as primary keys to link one table with another. Fields
    which are used to store these links (for instance tp_DirName from the AllUserData table) allow storing only 256 characters.
    There are several ways that you can resolve or mitigate URL length problems in the SharePoint Server 2010 environment. The following list provides suggestions:
    1. Upgrade all the end-user browsers to Internet Explorer 8, which has a longer URL length limit.
    2. Use shorter names for sites, folders, and documents and control the depth of the site and folder structures to reduce the lengths of URLs.
    3. If possible or allowed, use ASCII names for sites, folders, and documents. This will avoid situations where the URL will be lengthened by being encoded.
    4. To reduce the risk that the SharePoint Server 2010 end-users will encounter problems because of URL length limitations, we recommend that you apply the following effective limits in the deployment:
    256 Unicode (UTF-16) Code units - the effective file path length limitation, including a domain/server name
    128 Unicode (UTF-16) Code units - the path component length limitation
    More reference:
    http://technet.microsoft.com/en-us/library/ff919564(v=office.14).aspx
    http://sharepointknowledgebase.blogspot.in/2013/04/url-path-length-restrictions-in.html#.VKJN53BJA
    Best regards,
    Sara Fan

  • TS4153 few files and folder are not deleting from trash folder

    i am trying to delete all files and folders from the trash folder by clicking  empty securely, but its not deleteing the files anf folder. please suggest how to clean the trash folder by deleteing all the deleted files and folder.

    Securely deleting items in Trash writes Zeros over the data so that it is completely eradicated.
    This will take quit a long time depending on how much data you have in Trash.
    Unless there is data that needs to be rendered unrecoverable in the Trash, you could choose to just delete the files and folders with out the secure option.
    Once you have Emptied the Trash unsecurely you can always use disk utility to Securely Erase Free Space on the Drive.

  • Given filename or path contains Unicode or double-byte characters.Retry using ASCII characters for filename and path What does this mean? it happen when I publish an OAM

    Given file name or path contains Unicode or double-byte characters. Retry using ASCII characters for filename and path
    What does this mean? It is happening when I try to publish an OAM for Dreamweaver.
    Also: How can I specify the browser in Edge Animate? It is just going wherever. Are there no Preferences for Edge Animate?
    BTW. Just call it Edge. Seriously. Do you call it Illustrator Draw? Photoshop Retouching?

    No, my file name is mainContent.oam
    My project name is mainContent.an
    This error happens when I try to import into Dreamweaver. Sorry, I wasn't clear on that earlier.
    I thought maybe it was because I had saved my image as a png. So re-saved as a svg, still get the error.
    DO I have a setting is Dreamweaver CC that is wrong? Should I try this in Dreamweaver CS6? I might try that next.
    Why is this program so difficult? I know Flash. I know After Effects. I can work the timeline part just great. It's always in the export that I have problems.
    On a MacPro, 10.7.
    Are you an Adobe person or just a nice helper?

  • File and directory names with Danish characters

    I have installed the Novell Client v2.0 for Linux on my Open Suse 10.3. The Client is connecting to my Netware servers (6.0 & 6.5) without any problems...
    There is one problem... Filenames and directory names with the Danish , & (ae, oe & aa), e.g the filename bger.doc (bger = books) is shown as b. and when clicking the file the file disappears from the file list. It seems to be the same problem with the German (umlaub).
    What to do?
    /Michael

    Originally Posted by J.H.M. Dassen (Ray)
    mimo <[email protected]> wrote:
    > There is one problem... Filenames and directory names with the Danish ,
    > & (ae, oe & aa), e.g the filename bger.doc (bger = books) is shown as
    > b. and when clicking the file the file disappears from the file list. It
    > seems to be the same problem with the German (umlaub). What to do?
    As far as I know, the Novell Client for Linux expects that file and
    directory names use the UTF-8 encoding and does not support a traditional
    8-bit encoding like ISO 8859-1. Try changing the encoding of file and
    directory names to UTF-8 as described in
    SDB:Converting Files or File Names to UTF-8 Encoding - openSUSE
    HTH,
    Ray Dassen
    Technical Support Engineer, EMEA Services Center, Novell Technical Services
    Novell, Inc. Software for the Open Enterprise Software for the Open Enterprise
    Seems a good hint. When I create a folder or file from within SUSE using an "Umlaut" everything is OK and NCL 2.0 displays them correctly as they are UTF-8 formatted.
    The proposed tool is no solution: one cannot convert folders or files that one cannot see (does it work for folders at all?). Maybe a windows tool would work because one could search for all files or folders with "Umlaute" and convert them. Other options?

  • File and folder permissions for Adobe Photoshop CS5

    Good day,
    I am an IT specialist and I work for a Canadian governement agency and we are having an issue with Photoshop CS5. After successfully installing Photoshop CS5 from the Adobe Creative Suite 5 Design Premium set(using a local machine administrator account), Photoshop crashes immidiatly after launching it(even with the local administrator account). The exact error message is as follows:
    The instruction at "0x230dad8dc" referenced memory at "0x00000000". The memory could not be "read".
    Click on OK to terminate the program
    Click on CANCEL to debug the program
    I know this is an environement issue and not an application or hardware issue since I was able to successfully install and run Adobe Photoshop CS5 on a plain vanilla install of Windows SP3 XP on the same model of workstation(HP DC7800). This later also confirms it is not a RAM or video adapter issue either. My experience tells me it would be more related to file/folder permissions on the workstation(although I'm open to other suggestions).  Because we are a governement agency, our workstations have machine and user policies and desktop configurations that get applied to the workstations automatically upon joining our domain via GPOs and SMS. Certain system files and folder permissions may be locked down for security reasons therefor I was wondering is someone has a list of files and folders that Adobe CS5 needs access to upon startup in order to properly function?
    If anyone would like more details or information please let me know and I'll try to be more specific.
    Thanks in advance to all who take the time to read and help out!

    I appreciate that you're trying to surmise what's different, and it's good that you have had success with similar/identical hardware.  At least you know it can work.
    However, I wouldn't bet just yet that it's a permissions issue.  I'd think you should get a specific error if a locked-down file needed to be accessed, not a null pointer crash.  The Photoshop installer should be setting up the proper permissions on its own files for it to run.
    Is it exactly the same video card as the other computer, on which Photoshop works?
    Are you sure the video drivers are up to date with the same version as on the other computer?
    At exactly what point during startup does the failure occur (i.e., is the splash screen showing, and what does the status line in the splash screen say it's doing)?
    -Noel

  • Use special characters in a DTD

    Hello,
    I created a DTD amd want to use some special characters in this DTD. E.G. I want to define:
    <!ATTLIST element value (val1|val 2|<val3>|%val4) #REQUIRED>
    I tried the following but the parser does not accept without errors:
    <!ATTLIST element value (val1|val&#xxx;2|&#yyy;val3&#zzz;....
    Of course I replaced the xxx, yyy and zzz with the unicode number of the special sign.
    So what do I do wrong? Or is it in general not possible to use special characters ?
    Thank you very much,
    Findus

    Hi,
    one thing I did which does not work is:
    <!ATTLIST element values (&|<|val1) #REQUIRED>
    The XML parser (XMLSpy) alway requires me for entering a '%' which is as far as I know only used for parameter entities. But & and the rest are general entities, aren't they ??
    I played arround a little bit and found a solution which still does not completly solve my problem: In order to use special characters I declare parameter entities:
    <!ENTITY percent "&#37;">
    <!ENTITY lower "&#60;">
    <!ATTLIST element values (%lower;|val1|%percent;) #REQUIRED>
    This works so far so good but if I want to embed the special characters (which is what I need to do!) the parser still gives me errors:
    <!ATTLIST element values (text%lower;moreText|val1|%percent;) #REQUIRED>
    I would be really glad if anybody could test this on his own and post me about the results. For any other kind of avice I'm very thankful, too.
    Thank you very much,
    Findus

  • Mail.app hang if mail attachment have special characters in file name

    Hello,
    I have upgraded to 10.5.1 from last version of Tiger.
    After upgrade is not possible send message with attachment which have a czech special characters in file name (like á, í, é, ý, ú, ů, ě, š, č, ř, ž) with Mail.app. If I try it, CPU is overloaded and I must kill Mail.app process.
    The same problem have my friends who are running a clear installation of Leopard 10.5.1.
    Thanks for correction.

    I have the same problem with Hungarian chars. I tried out Tomas suggestion and it really worked. It is so dissaponting to have this kind of bug in a system like this. They never tested against this situation.
    I hope somebody at apple read this discussion and somehow this will be fixed in the near future.

  • Mac CAN't Cut files and folder???

    i'm new Mac user!
    My Mac CAN't Cut files and folder! is it normal? just copy, then delete orig.
    or use drag with OPT key. But i can't use CMD+X or CUT in EDIT menu.

    I have been having the same problem, and thought it was just me. Had the same problem with deleting files/folders in Finder...till I found you have to hold the cmd key down while deleting.
    Was hoping there was a keyboard shortcut for copy as well.
    Really infuriating, what would be a CMD-X, move mouse, CMD-V operation becomes a copy, navigate to new folder/move to new window, paste, go back to other window, re select and delete operation.
    My work around is to use Windows Explorer in unity mode in VMWareFusion if I am doing any major search/move/cut operations.
    Saves having to have multiple windows open/going back/forwards, between them.
    I did see a terminal hack that enabled the CMD-X keyboard shortcut....but it just deletes to the Trash Bin and does not actually paste the items back.
    Can understand the reasons nerowolfe states, but that does not stop it from being b**y annoying

Maybe you are looking for

  • Error while creating JDBC connection pool for MSSQL database

    Hi, From my windows m/c, I am trying to configure a connection pool to connect to an MSSQL database on another m/c. While setting the targets, i get the error :- <Mar 11, 2004 6:17:52 PM GMT+08:00> <Error> <JDBC> <Cannot startup connection pool "gcdb

  • Need help in doing exercise with classes

    Here is my exercise: 1.     An object Student has: id, last name, first name, number of AAS courses and number of ESL courses in current semester and whether student uses laptop or not. The formular to calculate tuition fee: Tuition fee = AAS courses

  • How to emulate invoke in BPEL process test

    I do some experiments with BPEL tests. There are some possibilities to emulate messages (for receive activities). How can I test invoke activities. I need that BPEL test do not invoke webservice but continue with emulated ouput values. Thanks.

  • Dropcam has stopped working on Mac OS 10.7.5 and Firefox 25 - Blank camera screen.

    No image shows in the image window for dropcam. Only thing that shows is the camera name in the window title area, above the image window. Mac Mini 10.7.5 Firefox 25 The dropcam image window opens fine using Safari with the same computer.

  • Exporting a TOC into Excel

    I am getting ready to have QA review my project, which is rather large. I want to export the various TOCs into MS Excel so that they can "check mark" QA'd items for each page. How can I export into Excel?