Other Languages - CFileDialog getpathName not reading japanese

Asked By sherin shajan on 10-Nov-11 12:20 AM
I have a folder name in japanese.CFileDialog getpathName is returning some Question marks when the folder is selected. Is there some way to solve it?
CFileDialog dlg(TRUE, NULL, NULL, OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, "JPEG Files (*.jpeg, *.jpg)|*.jpeg; *.jpg||", NULL );
if (dlg.DoModal() == IDOK) 
{
  SetCursor(AfxGetApp()->LoadStandardCursor(IDC_WAIT));
  FileName = dlg.GetPathName();
  Standard_CString aFileName = (Standard_CString)(LPCTSTRFileName;
}
Anil Kumar replied to sherin shajan on 14-Nov-11 10:40 AM
Hi Sherin,

Set your system locale to Japanese. Try setting the compatibility in Applocale for the Japanese, I believe it is the only issue. Do refer to the article below, it will guide you through the process:
http://www.wfu.edu/~yipcw/atg/microsoft/applocale/ 

Do update us again.
Thank you
Anil