Skip to main content
Known Participant
April 20, 2025
Answered

How to compile unicode C++ file and resource file correctly for mac AE plugin?

  • April 20, 2025
  • 2 replies
  • 360 views

Hi guys, I need help, thanks for you kind help! I try to use Chinese Symbol in plugin parameter, plugin name, plugin category on mac os, I use XCode to build my plugin, but I meet two problem:

1. When I add effect on layer, it show up error: can not convert Unicode Characters

2. The effect name is correct in plugin menu, but the category name show strange symbol.

Correct answer shachar carmi

the name field is defined as "A_char[32]". so you need to convert your string to utf8 and feed the param macro the resulting string. make sure the length of tghe resulting string is no more than 31 chars long (including multibyte), as the last char has to be used for null termination.

2 replies

shachar carmiCommunity ExpertCorrect answer
Community Expert
May 19, 2025

the name field is defined as "A_char[32]". so you need to convert your string to utf8 and feed the param macro the resulting string. make sure the length of tghe resulting string is no more than 31 chars long (including multibyte), as the last char has to be used for null termination.

Known Participant
May 29, 2025

Thanks man, finally I used ConvertUTF8ToGBK("中文") in an utf-8 codec .cpp file which succeed in XCode, I don't know why. 

Known Participant
April 20, 2025

I use After Effect 2025, XCode 16.2, Mac OS 14.6.