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.

4.6.2 Unicode<br />

Font Types<br />

widely used at runtime and <strong>the</strong>n generate with <strong>the</strong> NLS environment variable (NLS_<br />

LANG) set <strong>to</strong> that particular character set.<br />

If you design and generate an application in one character set and run it in ano<strong>the</strong>r<br />

character set, performance can suffer. Fur<strong>the</strong>rmore, if <strong>the</strong> runtime character set does<br />

not contain all <strong>the</strong> characters in <strong>the</strong> generate character set, <strong>the</strong>n question marks appear<br />

in place of <strong>the</strong> unrecognized characters. Portable Document Format (PDF) supports<br />

multibyte character sets. There might be situations where you create an application<br />

with a specific font but find that a different font is being used when you run that<br />

application. You would most likely encounter this when using an English font (such as<br />

MS Sans Serif or Arial) in environments o<strong>the</strong>r than Western European. This occurs<br />

because <strong>Oracle</strong> <strong>Reports</strong> checks <strong>to</strong> see if <strong>the</strong> character set associated with <strong>the</strong> font<br />

matches <strong>the</strong> character set specified by <strong>the</strong> language environment variable (NLS_LANG).<br />

If <strong>the</strong> two do not match, <strong>Oracle</strong> <strong>Reports</strong> au<strong>to</strong>matically substitutes <strong>the</strong> font with ano<strong>the</strong>r<br />

font whose associated character set matches <strong>the</strong> character set specified by <strong>the</strong> language<br />

environment variable. This au<strong>to</strong>matic substitution assures that <strong>the</strong> data being returned<br />

from <strong>the</strong> database gets displayed correctly in <strong>the</strong> application. Note: If you enter local<br />

characters using an English font, <strong>the</strong>n Windows does an implicit association with<br />

ano<strong>the</strong>r font. There might be cases, however, where you do not want this substitution<br />

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

WE8ISO8859P1 character set in <strong>the</strong> font alias file (uifont.ali).<br />

Unicode is a global character set that allows multilingual text <strong>to</strong> be displayed in a<br />

single application. This enables multinational corporations <strong>to</strong> develop a single<br />

multilingual application and deploy it worldwide. <strong>Oracle</strong> <strong>Reports</strong> provides Unicode<br />

support. If you use Unicode, you are able <strong>to</strong> display multiple languages, both<br />

single-byte languages such as those spoken in Western Europe, Eastern Europe,<br />

Bidirectional Middle Eastern, and multibyte Asian languages such as Chinese,<br />

Japanese, and Korean (CJK) in <strong>the</strong> same application. Use of a single character set that<br />

encompasses all languages eliminates <strong>the</strong> need <strong>to</strong> have various character sets for<br />

various languages. For example, <strong>to</strong> display a multibyte language such as Japanese, <strong>the</strong><br />

NLS_LANG environment variable must be set <strong>to</strong> <strong>the</strong> following:<br />

NLS_LANG=JAPAN_JAPANESE.JA16SJIS<br />

To display a single-byte language such as German, NLS_LANG must be set <strong>to</strong> <strong>the</strong><br />

following:<br />

NLS_LANG=GERMAN_GERMANY.WE8ISO8859P1<br />

The obvious disadvantage of this scheme is that applications can only display<br />

characters from one character set at a time. Mixed character set data is not possible.<br />

With <strong>the</strong> Unicode character set, you can set <strong>the</strong> character set portion of NLS_LANG <strong>to</strong><br />

UTF8 instead of a specific language character set. This allows characters from different<br />

languages and character sets <strong>to</strong> be displayed simultaneously. For example, <strong>to</strong> display<br />

Japanese and German <strong>to</strong>ge<strong>the</strong>r on <strong>the</strong> screen, <strong>the</strong> NLS_LANG variable must be set <strong>to</strong><br />

one of <strong>the</strong> following:<br />

NLS_LANG=JAPAN_JAPANESE.UTF8<br />

NLS_LANG=GERMAN_GERMANY.UTF8<br />

<strong>Oracle</strong> <strong>Reports</strong> relies on <strong>the</strong> operating system for <strong>the</strong> font and input method for<br />

different languages. To enter and display text in a particular language, you must be<br />

running a version of <strong>the</strong> operating system that supports that language. Font support is<br />

limited but not restricted <strong>to</strong> <strong>the</strong> operating system font. Windows NT release 4.0 and<br />

Managing Fonts in <strong>Oracle</strong> <strong>Reports</strong> 4-23

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

Saved successfully!

Ooh no, something went wrong!