Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: determining client charset of a session
On Thu, 29 Apr 1999 16:46:29 GMT, cocoa1826_at_my-dejanews.com wrote:
>Is there anyway to determine the charset of a client from within a session?
>The server's charset can be determined with a query like: select value from
>v$nls_parameters where parameter = 'NLS_CHARACTERSET' I want to compare to
>the client's.
Use the function USERENV('LANGUAGE') - it will return the NLS_LANG setting of the current session in the standard form LANGUAGE_TERRITORY.CHARCATERSET. Example:
SCOTT_at_PO73> select userenv('LANGUAGE') from dual;
USERENV('LANGUAGE')