---
title: "6.8 UTF-8 Failed regex fix"
description: "Opsview 6.8.x enforces strict UTF-8 constraints causing regex errors with special characters like apostrophes and quotes. The issue can be resolved by applying provided file updates, restarting opsview-web, and reloading the browser."
url: "https://docs.itrsgroup.com/docs/faq/opsview/12274959501213-opsview-6-8-utf-8-failed-regex-fix/index.html"
---
## Symptoms

In version 6.8.x there is an issue that could cause errors such as the following, 'character' being used that is failing the regex code: jkong's the apostrophe can cause issue the same issue can be seen when using double quotes " for adding a user, for example, user: Jenny "Lia" Kong

```
WARN - ldap: Error synchronising jkong: Failed allowed regex on 'fullname' with '^(?!\p{Z})[\p{L}\p{N} ,./+\-_]*$'
```

```
[opsview@opsview-orchmaster ~]$ /opt/opsview/webapp/bin/opsview_sync_ldap -y -D
INFO - Start
DEBUG - ldap: Attempting connection
INFO - ldap: Start
[…]
WARN - ldap: Error synchronising jkong: Failed allowed regex on 'fullname' with '^(?!\p{Z})[\p{L}\p{N}, './+\-_]*$'
INFO - Finished - 0 contacts deleted; 0 contacts added
INFO - End
```

## Cause: The Implementation of UTF-8 in 6.8.x

This has happened due to the strict UTF-8 constraints being enforced in 6.8, therefore, causing such an issue

Even if you try setting up an account in the web UI with double quotes you get presented with I “Invalid Characters” error and therefore you cannot add an account

### Workaround Solution

Make a backup of the previous files and copy the new files attached to this case

```
cp /tmp/constraints.json /tmp/constraints_unhashed.json /opt/opsview/corelibs/lib/
chmod 440 /opt/opsview/corelibs/lib/constraints.json /opt/opsview/corelibs/lib/constraints_unhashed.json
chown root.opsview /opt/opsview/corelibs/lib/constraints.json /opt/opsview/corelibs/lib/constraints_unhashed.json
```

Restart `opsview-web` and reload the web browser

## Related downloads

- `[constraints.tar.gz](/faq/downloads/opsview/12274959501213-16613268176541-constraints.tar.gz)`


