UTF8 String Literal

Hi,

We’re using the following to create the infinity symbol in a plugin when a parameter is a minimum value. For some reason this is not working in VST2 (garbage or ?? displayed depending on the host) but is fine in VST3, has anyone else come across this issue? This value is not displayed in our plugin GUI, only sent to the host.

const String InfStr(String(CharPointer_UTF8(“\xe2\x88\x9e”))); // oo

Many thanks,
Alan

Probably because some host don’t support UTF8 for string value in VST2 as it’s not supported by the spec or at least never mentionned.

1 Like