Explainer
Why PI Data Archive tag names are not stored as Unicode
Short answer
The PI Data Archive does not store tag names as Unicode. It preserves the exact bytes the creating client sent and directly supports only ASCII, so a Korean name reads correctly only on clients whose Windows language for non-Unicode programs setting matches the creator's. Set every AF SDK machine to that same code page before touching the points.

On this page
- Does the PI Data Archive store tag names as Unicode?
- Why does a Korean tag name look right on one client and garbled on another?
- How does AF SDK return a name that is not stored as Unicode?
- Does creating points with PI SMT or PI Builder make the names Unicode?
- What do the stored bytes of a Korean tag name look like?
- How do you make a garbled tag name read correctly?
- How should you name new points so this never happens?
- Questions asked
The PI Data Archive does not store tag names as Unicode: it keeps the exact bytes the creating client sent, and AVEVA documents that the Data Archive directly supports ASCII characters in names. A Korean name reads correctly only where the reading machine's Windows language for non-Unicode programs setting uses the same code page the creating machine used. Nothing on the server needs to change to fix garbled names; the decision lives on the client. This page gives the storage model, a byte-level worked example with a Korean point name, the comparison that separates a decoding fault from a genuinely wrong stored name, and the setting that makes every AF SDK client read the same characters.
Does the PI Data Archive store tag names as Unicode? #
No — the archive keeps each point name as the exact byte sequence the creating client sent, performs no conversion into Unicode, and AVEVA documents that Data Archive directly supports ASCII characters for names.
Practically, the server treats the name as opaque bytes: it records no encoding marker, so nothing stored alongside the point says which code page the name belongs to. Point names and values live in the archive's own store rather than in a SQL database, as Does the PI Data Archive store tag data in SQL Server explains, and that store neither knows nor preserves the creator's locale. AVEVA's knowledge base guidance on non-English characters in tag names, module names and alias names describes the same model: the server keeps what it receives, and every reader has to bring the matching encoding.
This is why the same point can show two different names on two clients. The divergence is created at decode time on the client, not in storage, and that fact decides where you fix it.
Why does a Korean tag name look right on one client and garbled on another? #
Because each client decodes the stored bytes with its own Windows language for non-Unicode programs setting: machines that share the creator's code page show the intended characters, and machines with a different code page show different characters from identical bytes.
A legacy code page is a fixed table that assigns characters to byte values; Korean Windows and Western European Windows ship with different tables, so the same bytes name different characters on the two systems. Unicode is the opposite design: every character carries one number, independent of any regional table, which is why a genuinely Unicode string reads identically everywhere. The stored point name has no such number — it has bytes only — so decoding it under the wrong table and handing the result to a Unicode application preserves the wrong characters permanently in that application.
Read the same point on both machines before you change anything:
| What you see | What it means | Next step |
|---|---|---|
| Creating client shows the name correctly; reading client garbles it | The stored bytes are good; the reader decodes with a different code page | Match the reader's language for non-Unicode programs to the creator's and restart it |
| Both clients garble the same point | The stored bytes themselves do not represent the intended characters | Compare against the intended naming list; rename only from a correctly encoded client |
| The application cannot find the point by name at all | The lookup string encodes to different bytes than the point's stored name | Locate the point independently, then compare the name the read returns |
| The SDK string is right but the screen shows boxes | A font or rendering gap, not an encoding fault | Check the display control; leave the archived name alone |
Record the server, the point identity and each machine's setting with every reading. Two similarly named points, or a connection to a different archive, can imitate an encoding fault while the real problem is that the application selected the wrong object.
How does AF SDK return a name that is not stored as Unicode? #
The AF SDK decodes the stored bytes into a .NET Unicode string on the machine that runs your code, so the string in your application is Unicode even though the storage on the server never was.
The decode uses that machine's system locale, which is why an application can hold a perfectly ordinary Unicode string that is nonetheless not the name the creator typed. Capture the returned name immediately after the read, before any file export, database write, network payload or display control touches it.
If the captured string is correct and the screen is wrong, the fault is downstream: trace the application's own conversion, serialization and font handling. Other industrial software has the same shape of requirement — LabVIEW applications, for example, handle Unicode text only after an explicit encoding configuration, as LabVIEW 2020 Unicode configuration page describes. If the captured string is already wrong, go back to the creator-versus-reader comparison in the previous section. For an application hosted as a service, inspect the machine that actually runs the SDK, not the operator workstation that only displays its output.
Does creating points with PI SMT or PI Builder make the names Unicode? #
No — PI SMT builds points through AF SDK and internal server methods and passes the name through to the Data Archive unchanged, so the stored bytes still depend on the creating machine's encoding, not on the tool you used.
The name reaches the server as the creating client sent it, with no conversion that would make it locale-independent. Two technicians can therefore create points from two AF SDK clients with different system locales and produce two different sets of stored bytes for what looks like one naming scheme. Sharing the tool, the template or the naming convention does not align the operating-system settings underneath them. No AF SDK setting is documented to change this decoding: the switch that matters is the Windows system locale of each client machine, which is why the fix below is environmental rather than a code change.
What do the stored bytes of a Korean tag name look like? #
One Hangul syllable stored on a Korean Windows machine occupies 2 bytes — the syllable han, Unicode U+D55C, is bytes C7 D1 in code page 949 — and those same 2 bytes read back as han on a Korean client but as two accented Latin characters on a code page 1252 client.
The arithmetic, step by step:
- Creation. The creating workstation runs Korean Windows, whose system locale applies code page 949. The client encodes han (U+D55C) as the 2 bytes C7 D1 and sends them with the point creation; the Data Archive stores both bytes and adds nothing.
- Reader on Korean Windows. Code page 949 maps the byte pair C7 D1 back to one syllable: 2 stored bytes, 1 character returned, the one the creator typed.
- Reader on Western European Windows. Code page 1252 maps each byte separately: C7 becomes the C-cedilla character and D1 the N-tilde character, so the byte pair returns 2 characters, both wrong. The count is the diagnosis: 2 characters out for 1 syllable in, 0 of them correct.
- The ASCII control. The name P-101 is 5 ASCII characters = 5 bytes, at 1 byte per character, and every code page maps those bytes identically. ASCII names cannot show this fault; only names containing bytes above the ASCII range can.
Two consequences follow from the counts. A garbled read is the same storage with a different interpretation: nothing on the server changed, so nothing on the server needs fixing. And once a name has decoded to the wrong characters inside a Unicode application, those wrong characters are all that application has — the substitution happened at decode time, and no later step recovers the original.
How do you make a garbled tag name read correctly? #
Set the reading machine's Windows language for non-Unicode programs to the same language the creating machine used — Korean in this case — restart that machine or its service host, then confirm the read on one known point before you change anything else.
Work in this order, and rename nothing until the last step proves it necessary:
- Read the point on the machine that created it and record the expected name from a trusted naming list or from that client's correct display.
- Record the language for non-Unicode programs setting on the creating machine and on every machine that reads the name. Read the actual setting: the keyboard layout, the display language and the language of the names themselves do not tell you the code page.
- Set each reading machine's system locale to the creator's language — Korean in the case above — and restart, because Windows applies the code page at startup. A service-hosted application needs the restart on the machine that runs the service, not on the workstation that views its output.
- Read one known affected point through AF SDK and compare the returned name character by character with the recorded expected name before returning the application to service.
- Rename a point only when the stored name is itself wrong — the creating client garbles it too — and do it from a client that encodes the intended characters, then update every name-based reference the plant relies on.
If other legacy applications share the reading machine and need a different locale, do not move that machine's setting; put the AF SDK application on a dedicated machine configured to match the creator. That is the decision: one shared workstation holds exactly one non-Unicode locale, so the locale it keeps decides which application stays correct and which one gets its own machine.
How should you name new points so this never happens? #
Use ASCII characters only for new PI point names: ASCII stores 1 byte per character with the same meaning in every code page, so a name that is 12 ASCII characters is 12 identical bytes on every client you will ever deploy.
Keep names to letters, digits and the characters AVEVA's knowledge base lists as valid for Data Archive, and put descriptive text — Korean descriptions included — in attributes or annotations that the application handles as text, not in the point name itself.
Integrations that must create points from non-ASCII source data have a documented pattern to follow: AVEVA's connector documentation states that Data Archive directly supports ASCII characters, and PI Connectors convert non-ASCII characters in tag names to escaped ASCII text, so the Greek capital letter pi is stored as the six characters U+03A0. Apply the same escaping in your own creation code when non-ASCII input is unavoidable.
Names cause a second class of downstream faults even when storage succeeds: the slash inside a DeltaV historian tag that breaks PI calculations, covered in Fix PI calculations on slash-containing DeltaV historian tags, teaches the same lesson — a name can survive the archive and still fail a consumer. Decide the name set once, at design time, from the characters every consumer in the plant handles, and for a mixed-vendor plant that set is ASCII.
Questions asked
Does setting Windows to UTF-8 worldwide fix garbled PI tag names?
No. That option changes the legacy system code page to UTF-8, so bytes a Korean client stored under its own code page no longer match the encoding the reading machine applies and usually come back as replacement characters. The name returns only when the reading machine uses the same code page the creating machine used when the point was made.
Can I fix garbled names by renaming the points?
Not from a client whose encoding differs. Renaming from a mismatched machine writes freshly garbled bytes and breaks every name-based reference the plant relies on, including AF analyses, interface mappings and external lookups. First align the reading machines with the creator's code page; then, only if a stored name is genuinely wrong, rename it from a client that encodes the intended characters correctly.
Where is the language for non-Unicode programs setting?
It sits in the Windows regional settings of the machine that runs the client, as the system locale Windows applies to non-Unicode programs; that dialog also shows the legacy code page currently in force. The setting is machine-wide, so it governs every legacy application on that computer, which is why a shared workstation can serve only one locale.
Does the creating machine need a restart too?
Only the machine whose system locale changed needs one. The creating machine already holds the correct code page, so leave it untouched; after you change a reading machine's setting, restart that machine or the service host that runs the application, then verify the known point before returning it to service. If a creating machine's locale was changed at some point, recheck it before trusting the names it writes.


