Question: nprintf() to allow Greek characters in printf() not working as expected

I use nprintf to create greek characters as strings so that I can print them using printf.  But here is the strange behavior:

gk_Omega1 := nprintf("#%a", 937);
gk_Omega2 := nprintf("#%a", 937);

printf("%s %s", gk_Omega1, gk_Omega2);

does not print the same.  The gk_Omega1 is fine, but the gk_Omega2 prints "#937" instead of the the greek Omega character.

Does anyone see why this is?

Thanks, David

Please Wait...