Non-Break character causes CAS8N202E ICU conversion from utf-8 to UTF16 failed. code=12, reason [U_ILLEGAL_CHAR_FOUND]
173
Created On 11/10/26 10:58 AM - Last Modified 11/10/26 15:51 PM
Symptom
An illegal non UTF-8 character is used in the naming of a safe, causing constant errors from Password Manager to the Vault
Environment
10.10;11.1;11;11.2;11.3;11.4;11.5;11.6;11.7;12.0;14.6 Issue can be see in the following files in the CPM/Vault environment:
pm.log
italog.log
trace.d
Cause
Every time the CPM tries to access the vault regarding a particular safe, and it has the illegal character, it can produce the following error in the Italog:
- CAS8N202E ICU conversion from utf-8 to UTF16 failed. code=12, reason [U_ILLEGAL_CHAR_FOUND].
- ITAGN001S System error (Code: 413)
- CACPM393W Failed to write task event - Safe: Safe_ Name_ Here, Folder: Root, Object: Operating System... Error: ITAGN001S System error (Code: 413) .
- CACPM241W Failed to write password change event - Safe: Safe_ Name_ Here, Folder: Root, Object: Operating System... Error: ITAGN001S System error (Code: 413) .
- 2021-02-19 12:03:30.283 00000408 END PE 80328058 PasswordManager[00] ServiceName=WriteAuditLogServSafeName=Safe_ Name_ HereUserName=SafeLogMsgCode=136SafeLogMsgData=PasswordManagerSafe_ Name_ HereRoot\Operating System...
Resolution
In a text editor like Notepad or Notepad++, the character can look like a regular space. This issue can occur if the name is being copied from something like Microsoft Word or Excel during safe creation. Also keep in mind that copying it out of the log to another text editor can cause the non-break character to be overwritten as a true space. For this reason, it's recommended to pull the safe name directly form the pm or trace files.
With the following script, a true space will come back with a value of 32, and a space is an acceptable value in a safe name. If it comes back as anything else, it's more than likely an illegal non-break character which needs to be removed.
Put the name of the safe, as copied directly from either the pm log or trace file, within the single quotes as show below within a PowerShell window.
Example Safe: Safe_ Name_ Here
Example Script: 'Safe_ Name_ Here'.ToCharArray() | % {"$_ : $([int][char]$_)"}
Note: If you copy the script example, it will probably convert the non-break to a regular space now, due to copying.
If you notice, the space before the word Name shows up with a value of 32 (a true space), while the one before the word "Here" shows up with 160 which is a non-break character.
In order to correct the issue, you'll need to edit the safe name by deleting the text, and typing the name back in manually to ensure no extra characters get added in.