hi,
thanks a lot for posting the answer.
the problem in your first code is that SetUtf32 is that you didn't define your number of character. In the documentation, the count parameter is defined like so:
Number of valid characters in the buffer. A count of -1 calculates the string length automatically, terminating when \0 is found
3 solutions :
// define the right character number
copyright.SetUtf32(©rightChar, 1) iferr_return;
// define an array of Utf32Char and initialise it
maxon::Utf32Char copyrightP[2]{ 0x000000A9 , '\0' };
// Create a buffer in memory
maxon::Utf32Char* copyrightP = NewMemClear(Utf32Char, 2) iferr_return;
finally {
DeleteMem(copyrightP);
};
copyrightP[0] = 0x000000A9;
copyrightP[1] = '\0';
Cheers,
Manuel