01.02.2013 Views

Publishing Reports to the Web - Downloads - Oracle

Publishing Reports to the Web - Downloads - Oracle

Publishing Reports to the Web - Downloads - Oracle

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

NLS Environment Variables<br />

occurs because <strong>Oracle</strong>AS <strong>Reports</strong> Services checks <strong>to</strong> see if <strong>the</strong> character set associated<br />

with <strong>the</strong> font matches <strong>the</strong> character set specified by <strong>the</strong> language environment<br />

variable. If <strong>the</strong> two do not match, <strong>Oracle</strong>AS <strong>Reports</strong> Services au<strong>to</strong>matically substitutes<br />

<strong>the</strong> font with ano<strong>the</strong>r font whose associated character set matches <strong>the</strong> character set<br />

specified by <strong>the</strong> language environment variable. This au<strong>to</strong>matic substitution assures<br />

that <strong>the</strong> data being returned from <strong>the</strong> database gets displayed correctly in <strong>the</strong><br />

application.<br />

Note: If you enter local characters using an English font, <strong>the</strong>n<br />

Windows does an implicit association with ano<strong>the</strong>r font.<br />

There might be cases, however, where you do not want this substitution <strong>to</strong> take place.<br />

You can avoid this substitution by mapping all desired fonts <strong>to</strong> <strong>the</strong> WE8ISO8859P1<br />

character set in <strong>the</strong> font alias file (uifont.ali). For example, if you are unable <strong>to</strong> use<br />

<strong>the</strong> Arial font in your application, you can add <strong>the</strong> following line <strong>to</strong> your font alias file<br />

(located at ORACLE_HOME\TOOLS\COMMON\):<br />

ARIAL.....=ARIAL.....WE8ISO8859P1<br />

Each line in <strong>the</strong> uifont.ali file takes <strong>the</strong> following syntax:<br />

Face.Size.Style.Weight.Width.CharSet=Face.Size.Style.Weight.Width.CharSet<br />

In this example, you’re saying that any ARIAL font should be mapped <strong>to</strong> <strong>the</strong> same<br />

value, but with <strong>the</strong> WE8ISO8859P1 character set.<br />

Refer <strong>to</strong> NLS Environment Variables for more information about <strong>the</strong> language<br />

environment variables.<br />

18.2.1.3 Language and Terri<strong>to</strong>ry<br />

While <strong>the</strong> character set ensures that <strong>the</strong> individual characters needed for each<br />

language are available, support for national conventions provides correct localized<br />

display of data items.<br />

The specified language determines <strong>the</strong> default conventions for <strong>the</strong> following<br />

characteristics:<br />

■ Language for server messages<br />

■ Language for day and month names and <strong>the</strong>ir abbreviations (specified in <strong>the</strong> SQL<br />

functions TO_CHAR and TO_DATE)<br />

■ Symbol equivalents for AM, PM, AD, and BC<br />

■ Default sorting sequence for character data when ORDER BY is specified (GROUP<br />

BY uses a binary sort unless ORDER BY is specified)<br />

■ Writing direction (both right <strong>to</strong> left and left <strong>to</strong> right)<br />

■ Affirmative and negative response strings<br />

For example, if <strong>the</strong> language is set <strong>to</strong> French, <strong>the</strong>n <strong>the</strong> following messages in English<br />

are converted <strong>to</strong> French:<br />

English:<br />

ORA-00942: table or view does not exist<br />

FRM-10043: Cannot open file.<br />

French:<br />

ORA-0092: table ou vue inexistante<br />

Implementing NLS and Bidirectional Support 18-5

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!