Text is not displaying special character properly if written via script

Hello,

If I write a text ( ARMERÍA ) in the TextMesh Pro UGUI inspector I get a result as expected: ARMERÍA

But if I write a text from a script it shows me this: ARMER�A

And besides it creates me a subobject of the Text object: TMP SubMeshUI [FrontPageNeue B SDF Extended Material + LiberationSans SDF Atlas]

Does anyone know why it does not recognize the special characters when writing from script?

Thanks in advance.

This is simply because the character is not present in the font asset and possibly in the font file itself assuming the font asset is dynamic.

The above word “ARMERÍA” and character is present in the LiberationSans SDF font asset when using version 1.4.1 or 2.0.1 of the TMP package with the updated TMP Essential Resources.