# Validating Values

The Kendo UI for Angular QR Code package provides the [`createQRCodeValidator`](https://www.telerik.com/kendo-angular-ui-develop/components/barcodes/api/createqrcodevalidator) function for Angular Reactive Forms. The validator checks whether a value is valid for the selected QR Code encoding.

The function accepts the [`QRCodeEncoding`](https://www.telerik.com/kendo-angular-ui-develop/components/barcodes/api/qrcodeencoding) value `ISO_8859_1` by default. Pass `UTF_8` to validate Unicode values. When validation fails, the control receives a `qrcode` error that includes the validation message, value, and encoding.

The following example demonstrates the QR Code validator in action.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/barcodes/qrcode/validator/source.txt)

## Suggested Links

* [`createQRCodeValidator` API Reference](https://www.telerik.com/kendo-angular-ui-develop/components/barcodes/api/createqrcodevalidator)
* [QRCodeComponent API Reference](https://www.telerik.com/kendo-angular-ui-develop/components/barcodes/api/qrcodecomponent)
* [`QRCodeEncoding` API Reference](https://www.telerik.com/kendo-angular-ui-develop/components/barcodes/api/qrcodeencoding)
