# 'U8' Control UTF-8 Processing Defaults

> Source: https://manual.pvxplus.com/parameters/u8

## Description

The **'U8'** parameter is used to control the UTF-8 logic in the system. This parameter contains a series of bits (flags) used to control the processing of UTF-8 data.

If the **'U8'** parameter is **0** *(all bits off -- default setting)*, then no special processing will be done for UTF-8 support. If ***non-zero***, the following bits will apply:

|  |  |  |
| --- | --- | --- |
| **Bit** | **Value** | **Description** |
| 1 | 1 | If set, the system will consider all data as potentially containing UTF-8 data.<br>When parsing data for field separators ($8A$), the system will ignore separators within UTF data strings. All graphical controls will handle UTF-8 encoding for display, printing and size computations. **[INPUT](https://manual.pvxplus.com/directives/input)** directive will convert extended ASCII to UTF-8 values. Text-mode screen handling will be limited to 8-bit ISO values. |
| 2 | 2 | The system will generate an error whenever an invalid UTF-8 sequence is detected. If not set, the data will be considered normal 8-bit data and the UTF-8 encoding ignored. |
| 3 | 4 | The **[POS](https://manual.pvxplus.com/functions/pos)** system function will assume the data is UTF-8 encoded when attempting to advance its pointer (increment value). |
| 4 | 8 | The **[MID](https://manual.pvxplus.com/functions/mid)** system function will assume the data is UTF-8 encoded when attempting to sub-string data. |
| 5 | 16 | The in-line sub-string logic will assume the data is UTF-8 encoded when attempting to sub-string data. |
| 6 | 32 | Used to control UTF-8 support in the **[CVS](https://manual.pvxplus.com/functions/cvsextend)**, **[UCS](https://manual.pvxplus.com/functions/ucs)** and **[LCS](https://manual.pvxplus.com/functions/lcs)** system functions.  <br>  <br>*(UTF-8 support was added in PxPlus 2017.)* |

To enable UTF-8 logic, you will set the value of the 'U8' system parameter to a value made up of the above sum of the above option values.

Note:  
The 'U8' parameter is automatically forwarded to the WindX workstation for processing.

*(The 'U8' system parameter and UTF-8 support was added in PxPlus v7.00.)*

## Default

**0** (zero)
