Knowledgebase: PaperCut > Databases
I receive an error "Malformed \uxxxx encoding" when using db-tools
Last modified on 11 August 2020 01:07 PM

The PaperCut Support team recently came across this error when a customer was Up Sizing their PaperCut installation to use an external Microsoft SQL database.

PaperCut Supports both SQL Authentication (preferred) and Windows Authentication when connecting to the Microsoft SQL database.

In this particular instance, the Windows User was companydomain\universal. The universal is non-generic in this example. This meant that when running db-tools init-db, the Java environment that PaperCut is developed in returned the following error:

Error ocurred running db-tools, command: init-db.
Malformed \uxxxx encoding.

The file would require the \ to be escaped if this was the correct method of entering the Windows Authentication details. When using Windows Authentication, the username and password is not required.

More specifically, this error is because \u is reserved in Java for escaping Unicode strings.