Uprint Localization Utility - uprint

Purpose

The Uprint is a utility that can help if you are experiencing localization issues with OneTest Embedded.

Syntax

uprint

uprint <hex_min>..<hex_max>

uprint --mimename

uprint --utf8 <string>

where:

Description

When used with no argument, uprint returns the following information about the current locale:

When used with a <hex_min>..<hex_max> argument, uprint also returns a list of locale-encoded characters from <hex_min> to <hex_max>.

When used with the --utf8 option, uprint translates a specified locale-encoded <string> into a UTF-8 compliant backslashed hexadecimal string for use in C or C++ source code.

When used with the --mimename option, uprint returns the name of the Unicode Mime encoding.

Examples

The following command returns information about the current locale:

>uprint

Mib:111 mimeName:"ISO-8859-15"  locale:"fr_FR@euro"

 

The following command translates the word "éric" into a UTF-8 compliant string:

>uprint --utf8 éric

\xc3\xa9\x72\x69\x63