set the compiler [...] Settings in the Compile [...] character set. UCS
STR.Set [...] StrSize=>udiSize ); xOk : BOOL; END