unicode filenames problem
Posted: 11 Dec 2008 10:05
Im having problems playing videos with non-ANSI (thai) filenames using 0.9.6 and Kairos's Interop wrapper.
When feeding a thai file into a new VlcMedia I can see the proper name passed in, but checking the VlcMedia properties on the next line of debugging shows ???? instead of the thai characters.
The problem appears to be due to libvlc_media_new using unmanagedtype.LPstr
This is a single byte ANSI string, whereas I need unicode to read thai characters.
I have tried building a new version of the Interop Wrapper using BStr, LPTStr and LPWStr but none of these function at all.
I know that unicode filename support is possible since VLC plays them fine, I just need to replicate that in .Net!
Any ideas?
Here is a bit of Thai text incase it helps with testing (แจ้งรายการ)
When feeding a thai file into a new VlcMedia I can see the proper name passed in, but checking the VlcMedia properties on the next line of debugging shows ???? instead of the thai characters.
The problem appears to be due to libvlc_media_new using unmanagedtype.LPstr
This is a single byte ANSI string, whereas I need unicode to read thai characters.
I have tried building a new version of the Interop Wrapper using BStr, LPTStr and LPWStr but none of these function at all.
I know that unicode filename support is possible since VLC plays them fine, I just need to replicate that in .Net!
Any ideas?
Here is a bit of Thai text incase it helps with testing (แจ้งรายการ)