This content has been marked as final.
Show 2 replies
-
1. Re: Getting PDF filename with unicode chars
Test Screen Name Sep 17, 2013 11:20 AM (in response to donneltc)Not sure what works fine. Are you typecasting ASPathName to char*? Don't do that, it's just very good luck if it sometimes works.
-
2. Re: Getting PDF filename with unicode chars
donneltc Sep 20, 2013 7:16 AM (in response to Test Screen Name)You were right, the plugin was getting a char* from ASFileSysDisplayStringFromPath. I removed that and added this which seems to have fixed my problem:
ASText pathText = ASTextNew();
ASFileSysDisplayASTextFromPath(ASGetDefaultFileSys(), filePath, pathText);
wchar_t *pathString = (wchar_t*)ASTextGetUnicode(pathText);
Thank you!


