Cannot open file when file name is Unicode character

Possible duplicate:
C #: System.Diagnostics.Process.Start ("Explorer.exe", @ "/ select" + FilePath). Cannot open file when file name is Unicode character

I want to open the file location using the Explorer window. I am using C # with code

System.Diagnostics.Process.Start ("Explorer.exe", @ "/ select," + FilePath)

it works well with a simple English character, but it cannot open the file location if the file name is a Unicode character (Thia language).

Can anybody help?

+4
source share
1 answer

Unfortunately, command line arguments are smoothed to the current ANSI code page and return to Unicode in too many contexts. You can try manually calling CreateProcess, but there is no guarantee that this will work.

+2
source

All Articles