Oracle Solution for Error ora-24500

Solution for Oracle Error ORA-24500

ORA-24500: invalid UTF16 mode

What triggered the Error:

F16 mode is allowed only at environment handle creation time.

What should we do to fix it:

move UTF16 mode for functions other than OCIEnvCreate()