[jcifs] Mac to windows File name conversion

Roy Mathews roy at empressmam.com
Thu May 17 02:03:11 MDT 2012


Thank you so much George!!!!!!!!!!. We were searching this for the past one week. This allow us to map these characters while comparing.

Thanks and Regards,
Roy Mathew

From: George K Colley [mailto:gcolley at apple.com]
Sent: Wednesday, May 16, 2012 10:18 PM
To: Roy Mathews
Cc: jcifs at lists.samba.org
Subject: Re: [jcifs] Mac to windows File name conversion


On May 16, 2012, at 2:10 AM, Roy Mathews <roy at empressmam.com<mailto:roy at empressmam.com>> wrote:


Hi All,

We have an application to transfer file from mac to windows using smb(JCIFS) and another application in windows to handle these files. But when there is a invalid character like \ / : * ? " < > |  in filename , it will get converted to another character. This creates issue in filename comparison issues, since we are saving actual filename in database.
How smb converts these filenames?
Is there any specific rule for this character conversion, so that we can use that converted characters in database?

Regards,
Roy Mathew
These all should be converted into UTF16, you should check out http://support.microsoft.com/kb/q117258/  it shows these conversions.

George
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/jcifs/attachments/20120517/c892a1f7/attachment.html>


More information about the jCIFS mailing list