Oracle9iAS Portal Developer Kit

http_to_nls procedure

Contained in package wwnls_api.

Call this procedure to map an HTTP language abbreviation to an NLS language name.

procedure http_to_nls

(

p_http_language in varchar2,
p_nls_language out varchar2,
p_found_match out boolean

);

Version: Oracle9iAS Portal 9.0.2 or later

Parameters:

p_http_language

An HTTP language abbreviation.

Example: 'us'

Datatype: in varchar2

p_nls_language

A mapped NLS language abbreviation.

Example: 'AMERICA'

Datatype: out varchar2

p_found_match

Indicates whether a match is found.

Datatype: out boolean

Exceptions:

This function raises no user-defined exceptions.

Example:

declare

l_nls_language varchar2(30);
l_found boolean;

begin

wwnls_api.http_to_nls(

p_http_language => 'en-us',
p_nls_language => l_nls_language,
p_found_match => l_found);

end;

Related topics

The PL/SQL API Reference is part of the Portal Developer Kit on Portal Studio