Write variable length UTF8 string attribute with Fortran API

Not sure if this is going to help or confuse, but I’ve recently had the same question for C#. The question with an example solution is here: How to create scalar variable length string

Here’s what I’m working on: