6 Replies Latest reply: Nov 5, 2009 1:34 PM by ilvar RSS

    UTF characters in the filename(Windows platform)

    lifemanship Community Member

      Hello all,

       

      I want to know how to get the name of the document that contains UTF characters.

       

      The current implementation of code:

      BSTR l_fileInfoBSTR = NULL;
      IActionReference l_docRef( m_photoshop->MakeReference() );
      l_docRef.PutProperty( classProperty, keyFileReference );
      l_docRef.PutIdentifier( classDocument, l_doc_id );

       

      IActionDescriptor l_docDesc;
      m_action_ctrl->GetActionProperty( l_docRef, (IDispatch**)&l_docDesc );

       

      long hasKey = false;
      l_docDesc.HasKey( keyFileReference, &hasKey );

       

      if( hasKey )
      {
            l_docDesc.GetPath( keyFileReference, &l_fileInfoBSTR );
      }

      Thanks.