Skip navigation
Currently Being Moderated

Photoshop Automation Plug-in - Getting non western characters from layer names and layer text

Jun 5, 2012 1:07 AM

Tags: #windows #sdk #automation #photshop #international #plug_in

Hi To all members of the forum.

 

My name is Momir Zecevic and i have developed automation plugin for  Photoshop and it work well for almost 8 years now (Windows XP, Vista, 8, Visual studio 97 and Photoshop 7 SDK). However client for which I have written plugin wants me to add possibility for  new version so that plug-in can read  international characters from text layers (Russian , French German etc) as well as layer names if they have international characters in it.

 

I have tried  but seems that I am missing something obvious

 

Here is example what I get from getter

 

Example:

 

     error = sPSActionDescriptor->Make(&desc00000B28);

     if (error) goto returnError;

 

     error = sPSActionDescriptor->PutString(desc00000B28, keyName, "X????????X");

     if (error) goto returnError;

 

 

Layer name is on cyrilic (i hope that it will be displayed right here) XШЂЧЋЖЊЕЏX

 

Can someone point me in the right direction.

 

Thank you very much.

 

Regards,

 

Momir Zecevic

Ars Media

www.arsmedia.tv

 
Replies
  • Currently Being Moderated
    Jun 5, 2012 9:47 AM   in reply to MOMIR ZECEVIC

    Put/GetString only works on local code page. You will need to use the ASZStringSuite1 in ASZStringSuite.h. Descriptors have PutZString and GetZString API's. There are some samples in the SDK.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points