rickey@oware
New member
- Joined
- Sep 25, 2008
- Messages
- 2
- Programming Experience
- 10+
Hi Experts, Would appreciate if anyone could help me with this problem that I am facing.
I have a folder whose name is: c:\0TEST\David Bollot João Morales
It has an accented ã as you can see.
The following code fails. The error is shown below. It works fine if I replace the ã with any other character, even a japanese unicode character.
The error generated is:
Please help.
Rickey
I have a folder whose name is: c:\0TEST\David Bollot João Morales
It has an accented ã as you can see.
The following code fails. The error is shown below. It works fine if I replace the ã with any other character, even a japanese unicode character.
VB.NET:
Dim fi As New FileInfo("c:\temp\a1.txt")
fi.CopyTo("c:\0TEST\David Bollot João Morales\newa1.txt", True)
The error generated is:
Could not find a part of the path 'c:\0TEST\David Bollot Jo�o Morales\newa1.txt'.
Callstack: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite)
at System.IO.FileInfo.CopyTo(String destFileName, Boolean overwrite)
Please help.
Rickey