Oracle Solution for Error ora-24507

Solution for Oracle Error ORA-24507

ORA-24507: invalid combination of character set ids

What triggered the Error:

tempts to set one character set id as zero

What should we do to fix it:

t both charset and ncharset as zero or non-zero in OCIEnvNlsCreate()