[Cover] [Previous Section] [Next Section] [Index]

Current chapter: UP.Simulator Reference
Section 11 out of 79 total sections , Section 5 out of 12 sections in this chapter


Specifying language, character set, or font

The UP.Simulator can simulate UP.Phones that use a variety of different languages and character sets. Each UP.Phone configuration (.pho file) you load in the UP.Simulator specifies both a default language and a default character set (as well as a default font). For example, the default language and character set for the Samsung UP.Phone are English and US-ASCII.

To change the language, character set, or font used by the UP.Simulator:

  1. Choose Device Settings from the UP.Simulator's Settings menu.
  2. This displays the Device Settings dialog box (shown in Figure 1-11).

    FIGURE  1-11.     Specifying UP.Simulator language, character set, or font

  3. Choose the language and character set you want from the dropdown menus.
  4. Click the font button to choose the font.

When you are done, click OK. The UP.Simulator saves your language, character set, and font choices on a per-configuration basis. So, if you want to use a particular language with several configurations, you must specify it for each configuration.


IMPORTANT     Some languages display correctly only when used with certain character sets and fonts. For example, to correctly display Japanese, the UP.Simulator must be configured to use the Shift-JIS or Unicode character sets and fonts, such as the MS Mincho or Bitstream fonts. For more information on the fonts that support specific character sets, see your Windows documentation.

Note that you can reset any UP.Simulator configuration to return to default settings by displaying the Device Settings dialog box and clicking Reset to Config Settings.



Configuring the UP.Simulator for Japanese

To configure the UP.Simulator for Japanese:

  1. Make sure you are running the generic phone configuration.
  2. For information on switching phone configurations, see Simulating different phone and network types.

  3. Select Settings>Device Settings and choose Japanese from the Language dropdown menu.
  4. If you are running Win95-J or WinNT-J, choose Japanese (Shift-JIS) from the Charset dropdown menu. If you are running U.S. Windows NT, choose UNICODE from the Charset dropdown menu instead.

  5. IMPORTANT     You cannot configure the UP.Simulator for Japanese if you are using U.S. Windows 95/98. In addition, you cannot use the Shift-JIS character set with any version of Windows other than the Japanese versions shown above.

  6. Click OK when you are done.


Using different character sets in HTTP Direct mode

The UP.Link server features a transcoding capability: it maps the content of communications between an HDML service and an UP.Phone to character sets that each understands. This enables UP.Phones using a variety of character sets to access any HDML service, with little extra effort on the service's part. For more information about creating services that are compliant with the UP.Link server's transcoding capability, see the UP.SDK Developer's Guide.

When you test HDML services with the UP.Simulator, you must run it in UP.Link mode to take advantage of the transcoding capability provided by the UP.Link server. In HTTP direct mode, the UP.Simulator does set the Accept-Charset when it makes an HTTP request. However, it is up to the HDML service to check the header and conduct any necessary transcoding.


IMPORTANT     When you run the UP.Simulator in HTTP Direct mode, the only character set the UP.Simulator transcodes is UTF-8 to UCS-2. This means that you must configure the UP.Simulator to use the character set used by the HDML services that you intend to access. If you access an HDML service that uses a different character set, the content will not display correctly (it will appear as question marks or boxes).



Entering non-ASCII characters

Each key on an UP.Phone and the UP.Simulator can enter several characters. For example, the 3 key on a Samsung Duette phone can enter d, e, f, or 2. If you change the language and character set of an UP.Simulator configuration, the default key operation might not allow you to enter all the characters for that language and character set. For example, the French language and the Latin-1 character set include several accented variations of the letter a. However, the default UP.Simulator Samsung Duette configuration does not assign these accented variations to any keypad key. To enter characters not included in the default configuration, enter the desired characters using your computer keyboard.



Device settings and HTTP headers

When you choose a language in the UP.Simulator Device Settings dialog box, the value that appears in parentheses next to the language is the value that the UP.Simulator sets the Accept-Language header to when it makes an HTTP request. For example, if you choose French, the UP.Simulator sets the Accept-Language header to fr.

When you choose a Charset in the Device Settings dialog box, the UP.Simulator sets the Accept-Charset header to the corresponding value shown in the table below.

Charset in Device Settings Dialog  Windows Code Page  Accept-Charset Header Value 

Standard ASCII 

MS1252 

US-ASCII 

Western Europe  

MS1252 (Latin 1) 

ISO-8859-1 

Central Europe  

MS1250 (Latin 2) 

ISO-8859-2 

Turkish 

MS1254 (Latin 5 - superset of ISO 8859-9) 

ISO-8859-5 

Japanese (Shift-JIS) 

MS932 (superset of Shift-JIS) 

SHIFT_JIS 

Simplified Chinese 

MS936 (superset of GB 2312-80, EUC encoding) 

GB_2312-80 

Korean 

MS949 (superset of KS C 5601-1992) 

ISO-2022-KR 

Traditional Chinese 

MS950 (superset of Big 5) 

Big5 

Korean 

MS1361 (Johab) 

MS1361 

Greek 

MS1253 (Greek) 

windows-1253 

Hebrew 

MS1255  

windows-1255 


IMPORTANT     The UNICODE for US Windows NT Charset is provided especially for displaying Japanese characters on US Windows NT. Note that if you select this Charset, keyboard entry may not work correctly.


[Cover] [Previous Section] [Next Section] [Index]

Current chapter: UP.Simulator Reference
Section 11 out of 79 total sections , Section 5 out of 12 sections in this chapter


Copyright © 1999, Unwired Planet, Inc. All rights reserved.