Contact

UNICODE in Collabora Office: Inspect the First Character of Imported Text

Text Intermediate Collabora Office Calc

Read Unicode codes in Collabora Calc, diagnose leading characters and preserve the distinction between one code point and an entire label.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

Quick answer: UNICODE returns the numeric code of the first Unicode character in a text string. =UNICODE("© report") has independently expected result 169.

Availability and version history

  • Introduced: the original Collabora release and launch date are not established by the reviewed sources.
  • Availability: documented in Collabora Office 26.04 desktop help.
  • Platform scope: online and mobile deployment support is not inferred from the desktop documentation.
  • Checked: October 14, 2026. Function-specific documentation and independent controls; no native Collabora execution.

Syntax and first-character behavior

=UNICODE("Text")

The dedicated Collabora source specifies the first character, not the entire text. Its explicit example =UNICODE("©") returns 169.

The quotation marks in the syntax indicate literal text. When the value is stored in a cell, use its reference, such as =UNICODE(A2). The result is a numeric code that can be inspected or compared; it is not a language detector or a full-string hash.

The examples below use nonempty text and Basic Multilingual Plane characters. Empty strings, numeric-input coercion, supplementary-plane behavior and exact error codes are not established by the sparse product page.

Example 1: identify the leading character

Enter the following strings in A2:A7. Put =UNICODE(A2) in B2 and fill down. The expected codes are shown for comparison.

A, text B, first-character code
Alpha 65
alpha 97
© report 169
élan 233
Ω status 937
車 label 36554

Uppercase A and lowercase a have different codes. A case-insensitive search policy is a separate operation; UNICODE reports the actual leading character under this fixture.

The remaining letters do not affect the result. Alpha and Archive both begin with A and therefore yield 65, even though the complete strings are different.

Example 2: reveal a leading ordinary space

In D2 enter the formula =" Alpha", containing one ordinary space before A. In D3 enter ="Alpha". The checks =UNICODE(D2) and =UNICODE(D3) have expected results 32 and 65.

This makes a leading space visible without relying on column width or cell alignment. The result 32 diagnoses the first character; it does not count all spaces or prove that the rest of the string is clean.

TRIM has its own documented ordinary-space behavior. Do not generalize that cleanup rule to every Unicode spacing character merely because two characters look similar on screen.

Advanced example: inspect a short ASCII identifier position by position

Put Az9- in F2. Enter position numbers 1, 2, 3 and 4 in G2:G5. In H2 use:

=UNICODE(MID($F$2;G2;1))

Fill through H5. Expected codes are 65, 122, 57 and 45. The MID call selects one character at each listed position, and UNICODE reads that character.

This example deliberately uses ASCII characters. It does not establish how character positions should be counted for every combining or supplementary Unicode sequence. Keep the original identifier when validating an external system’s exact text contract.

Advanced example: reconstruct the inspected characters

Enter =UNICHAR(H2) in I2 and fill through I5. Expected characters are A, z, 9 and -. Then use:

=I2&I3&I4&I5

Expected text: Az9-, matching the original fixture. UNICHAR provides the reverse conversion for these explicit code values.

The round trip confirms these four character mappings. It is not evidence of a universal text normalization rule. A visually accented letter may be stored as one precomposed character or as a sequence with a combining mark, so identical appearance alone is insufficient for full identity.

Practical interpretation

=UNICODE("65") gives 54, the code of the first digit 6; it does not return the numeric value 65. The function inspects text characters rather than parsing a decimal number.

To parse an imported numeric string, use an appropriate numeric conversion workflow such as NUMBERVALUE with an explicit separator contract. To compare complete strings, retain and compare those strings rather than assuming equal first-character codes mean equal identifiers.

References and verification

Complete dedicated product documentation reviewed. Outputs are independent decimal, positional, character or type models, or explicit vendor controls; no native Collabora execution. Formulas use English names and semicolon separators. Optional-argument brackets describe syntax and are not typed into working formulas.