Link to home
Start Free TrialLog in
Avatar of iam_dumb
iam_dumb

asked on

Open weird filenames

Hello,

I'm trying to open file, that FindNext routine returned. The filename is 'T_-جÍ7-11¬ÝTW¦ñ.txt' and when I try TFileStream.Create, it throws an exception "Can't find file specified". However, the file is phisically exists and I can access it through Windows Explorer.

Thanks
Avatar of calinutz
calinutz
Flag of Romania image

It's because of the weird chars that are contained by the file name.  I think that the problem is mainly in the '|' character.
Did you try to change the filename from explorer to see if it gives you an error? The explorer sees the file but I am not sure that it can manipulate it.
The file was probabely made using some localised windows in China, Russia or something like that.
ASKER CERTIFIED SOLUTION
Avatar of pcsentinel
pcsentinel

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial