# Non English characters

**URL:** <https://developer.sailpoint.com/discuss/t/non-english-characters/105436>\
**Category:** SHF Discussion and Questions\
**Tags:** transforms, sailpoint-identity-security\
**Created:** [March 26, 2025, 12:44pm UTC](https://developer.sailpoint.com/discuss/t/non-english-characters/105436 "2025-03-26T12:44:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manju22](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@Manju22](https://developer.sailpoint.com/discuss/u/Manju22)\
**Post date:** [March 26, 2025, 12:44pm UTC](https://developer.sailpoint.com/discuss/t/non-english-characters/105436/1 "2025-03-26T12:44:18Z")

</div>

Hi,

I want to move the identity to error state if the first name or last name has non-English characters . We have already transformed the firstname identity attribute using decomposeDiacriticalMarks. But the attribute remains empty after the transform.

What is the method for me to be notified about it? How can I set them to an error identity?

---

<div class="post-metadata">

**Author:** ![RAKRHEEM](https://avatars.discourse-cdn.com/v4/letter/r/f05b48/32.png) [@RAKRHEEM](https://developer.sailpoint.com/discuss/u/RAKRHEEM)\
**Post date:** [March 26, 2025, 12:53pm UTC](https://developer.sailpoint.com/discuss/t/non-english-characters/105436/2 "2025-03-26T12:53:26Z")

</div>

Hi Manju,  
Thank you for posting your question. Can you please elaborate as to attribute remains empty ? Is the transform not transforming the non English characters ?

TRY the below transform  
{  
“id”: “\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*”,  
“name”: “Remove spaces and decompose diacritical marks”,  
“type”: “replaceAll”,  
“attributes”: {  
“table”: {  
“\s+”: “”  
},  
“input”: {  
“type”: “decomposeDiacriticalMarks”,  
“attributes”: {  
“input”: {  
“attributes”: {  
“sourceName”: “Non-Employee”,  
“attributeName”: “lastName”  
},  
“type”: “accountAttribute”  
}  
}  
}  
},  
“internal”: false  
}

Here’s what has been modified:

- In the `table` attribute of the `replaceAll` transform, the key has been changed from `" "` to `"\\s+"`. This regex expression `"\\s+"` matches one or more whitespace characters, including spaces, tabs, and line breaks. It will replace all occurrences of whitespace characters with an empty string, effectively removing them.
- The `input` attribute remains the same, using the `decomposeDiacriticalMarks` transform to decompose the diacritical marks from the input `lastName` attribute.

With these changes, the transform should remove all spaces and decompose the diacritical marks from the input `lastName` attribute without encountering the regex expression error.

You can also add what all ascii character are there in table with the corresponding replacement and it should work. Let us know if you still face issue after adding this transform

---

<div class="post-metadata">

**Author:** ![Manju22](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@Manju22](https://developer.sailpoint.com/discuss/u/Manju22)\
**Post date:** [March 26, 2025, 12:57pm UTC](https://developer.sailpoint.com/discuss/t/non-english-characters/105436/3 "2025-03-26T12:57:51Z")

</div>

Thanks for your explanation. But my input looks like “一鸣 柳” or “Симона Проданова”. After “decomposeDiacriticalMarks” transform, output is empty..

```auto
    {
        "name": "PPD decomposeDiacriticalMarks FN Transform",
        "type": "decomposeDiacriticalMarks",
        "attributes": {
            "input": {
                "attributes": {
                    "input": {
                        "attributes": {
                            "id": "FN Transform"
                        },
                        "type": "reference"
                    },
                    "regex": "[^a-zA-Z0-9-]",
                    "replacement": ""
                },
                "type": "replace"
            }
        },
        "internal": false
    },

```

---

<div class="post-metadata">

**Author:** ![RAKRHEEM](https://avatars.discourse-cdn.com/v4/letter/r/f05b48/32.png) [@RAKRHEEM](https://developer.sailpoint.com/discuss/u/RAKRHEEM)\
**Post date:** [April 8, 2025, 2:24pm UTC](https://developer.sailpoint.com/discuss/t/non-english-characters/105436/4 "2025-04-08T14:24:25Z")

</div>

Hi Manju,  
Can you try this code and see if it fixes your issue ?

{  
“attributes”: {  
“input”: {  
“attributes”: {  
“sourceName”: “Source”,  
“attributeName”: “chineseAttribute”  
},  
“type”: “accountAttribute”  
},  
“value”: “#set($chineseChars = $input)\n\n#set($convertedChars = "")\n#foreach($char in $chineseChars.toCharArray())\n #if($char \>= 19968 && $char \<= 40895)\n #set($unicodeHex = $esc.java.String.format("\\u%04x", $char))\n #set($convertedChars = $convertedChars + $unicodeHex)\n #else\n #set($convertedChars = $convertedChars + $char)\n #end\n#end\n\n$convertedChars”  
},  
“type”: “static”,  
“name”: “Chinese Character Transform”,  
“id”: “chineseCharacterTransform”  
}

---

<div class="post-metadata">

**Author:** ![KevinHarrington](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/kevinharrington/32/6776_2.png) [@KevinHarrington](https://developer.sailpoint.com/discuss/u/KevinHarrington)\
**Post date:** [April 8, 2025, 5:52pm UTC](https://developer.sailpoint.com/discuss/t/non-english-characters/105436/5 "2025-04-08T17:52:54Z")

</div>

You could create an “Error” lifecycle state and have your transform that calculates LifeCycle state place identities in the “Error” state if they meet certain criteria. Then enable notifications on that lifecycle state to go to administrators, or some address directly.

In order to check it, I’d do something like the following, but you’ll have to figure out what makes sense with your calculations:

```auto
{
	"attributes":{
		"LastName":{
			"attributes":{
				"sourceName":"Your HR Source Here",
				"attributeName":"LAST_NAME"
			},
			"type":"accountAttribute"
		},
		"LastNameEscaped":{
			"attributes":{
				"input":{
					"attributes":{
						"sourceName":"Your HR Source Here",
						"attributeName":"LAST_NAME"
					},
					"type":"accountAttribute"
				},
				"regex":"[^a-zA-Z]",
				"replacement":""
			},
			"type":"replace"
		}
		"value":"#if($LastName == $LastNameEscaped)No Error${else}Error#{end}"
	},
	"type":"static"
}

```

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [June 7, 2025, 5:52pm UTC](https://developer.sailpoint.com/discuss/t/non-english-characters/105436/6 "2025-06-07T17:52:59Z")

</div>

Closed on June 7, 2025, 5:52pm UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
