A script-enabled browser is required for this page to function properly.

ORA_NLS.AMERICAN built-in function

This function returns TRUE or FALSE, depending on whether the current character set is "American".

Syntax

FUNCTION ORA_NLS.AMERICAN
 RETURN BOOLEAN;

Returns

TRUE or FALSE.

Example


/*
** Determine if you're dealing with an American
** set or not
*/
PROCEDURE is_american (out TEXT_IO.FILE_TYPE) IS
  us BOOLEAN;
BEGIN
  us := ORA_NLS.AMERICAN;
  IF us = TRUE
    THEN
      TEXT_IO.PUT (out, 'Character set is American'); 
    ELSE 
      change_char_set;
  ENDIF;
END;

See also

About the ORA_NLS built-in package

ORA_NLS built-in package