Loading
Salesforce Help 사이트 “Help Agent powered by Fin” 도입 안내더 많이 읽기
Tableau 고객 대상: Tableau를 이용하는 고객이 Help 사이트에서 사례(케이스)를 등록할 수 없는 경우의 대체 수단더 많이 읽기
Slack 관련 문의처가 Salesforce Help로 통합 및 변경됩니다.더 많이 읽기

Salesforce Formula Functions Treat Surrogate Pair Characters as Two Characters

게시 일자: Jun 10, 2026
상세 설명

Although surrogate pair characters (for example, "𠮟" and "𠀋") display as 1 character, Salesforce formula string functions (LEFT, LEN, MID, RIGHT, and others) treat them as 2 characters internally.

  • LEN("𠮟")` returns 2, not 1.

Extracting the high surrogate with `LEFT("𠮟", 1)` results in "?" because the character cannot be interpreted correctly.

Surrogate pair characters consist of a combination of two values: a "high surrogate" and a "low surrogate." Consequently, the Salesforce formula engine counts these as two separate characters.

For example, a Salesforce admin building a formula to count characters in a text field containing Japanese kanji extended characters notices that LEN() returns an unexpected count.

솔루션

This article explains how to correctly handle surrogate pair characters in Salesforce formulas, which count each such character as two characters.

How to Handle Surrogate Pair Characters in Formulas

To correctly manipulate surrogate pair characters in formulas, you must treat them as two characters.

For example, to retrieve the surrogate pair character "𠮟", use the following syntax: `LEFT("𠮟", 2)`

추가 자원

This behavior is also observed in the Apex String class. The following article provides more details.

Knowledge 기사 번호

005166849

 
로드 중
Salesforce Help | Article