Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Registering a Kanji Character Using a Surrogate Pair to a Display Name

JPMac
Regular Contributor II
Regular Contributor II

I am trying to register a Chinese region-specific character to a display name.

For example, the character "𤧟" is represented as an extended character with U+249DF.

Such characters are expressed as surrogate pairs and are represented using 4 bytes.

Please advise on how to register these characters to a display name.

 

*Reference*

Currently, the following regex is registered in "User Regex Validation":
`/[一-龠]+|[ぁ-ゔ]+|[一-龯]+|[ァ-ヴー]+|[a-zA-Z0-9]+|[a-zA-Z0-9]+|[々〆〤ヶ]+/u`

3 REPLIES 3

Dhruv_S
Saviynt Employee
Saviynt Employee

Hi @JPMac 

Could you please provide more information about this use case. May be an example which can help us understand the requirements.

JPMac
Regular Contributor II
Regular Contributor II

@Dhruv_S 

The use cases are described in the text, but for example, the following two kanji characters can be set in the Saviynt displayname:
Pattern A: 横
Pattern B: 𤧟

Pattern A can be registered in the displayname by using the following Regex.

(Regex : `/[一-龠]+|[ぁ-ゔ]+|[一-龯]+|[ァ-ヴー]+|[a-zA-Z0-9]+|[a-zA-Z0-9]+|[々〆〤ヶ]+/u`)

JPMac_0-1724286055401.png


In the case of pattern B, an error occurs even if this Regex is used.

JPMac_1-1724286116039.pngJPMac_2-1724286126860.png


Pattern B characters are kanji using surrogate pairs, so it is necessary to be creative.

So, as a use-case, when I register a user with Saviynt, I get an error if the displayname contains a special Chinese character like pattern B.

Hello @JPMac,

The character "𤧟" that you're trying to import is a 4-byte character (UTF8MB4), which is not supported by our current Saviynt database, as it only supports 3-byte characters (UTF8).

We recommend raising a idea to support UTF8MB4 character .

Thanks.

If you find the above response useful, Kindly Mark it as "Accept As Solution".