c# - Can not open file when file's name is unicode character -


संभव डुप्लिकेट:

मैं खिड़की एक्सप्लोरर के साथ फाइल का स्थान खोलना चाहता हूं। मैं कोड # के साथ सी # का प्रयोग कर रहा हूं

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

यह सरल अंग्रेजी वर्ण के साथ अच्छी तरह से काम करता है

कोई भी कृपया मदद कर सकता है?

दुर्भाग्य से, कमांड लाइन के तर्कों को मौजूदा एएनएसआई कोड पेज पर समतल कर दिया गया है और बहुत सारे संदर्भों में यूनिकोड पर वापस आ गया है। आप प्रयास करें मैन्युअल रूप से CreateProcess का उपयोग कर सकते हैं लेकिन कोई गारंटी नहीं है कि काम करेगा।

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

javascript - What is an alternative to using getElementByClass for hiding multiple elements? -

javascript - Making the first column of a table fixed on horizontal scroll -