# Kirby validator and special characters

**URL:** <https://forum.getkirby.com/t/kirby-validator-and-special-characters/8946>\
**Category:** Questions\
**Tags:** v2\
**Created:** [November 4, 2017, 3:18pm UTC](https://forum.getkirby.com/t/kirby-validator-and-special-characters/8946 "2017-11-04T15:18:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![afincato](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/afincato/32/3446_2.png) [@afincato](https://forum.getkirby.com/u/afincato)\
**Post date:** [November 4, 2017, 3:18pm UTC](https://forum.getkirby.com/t/kirby-validator-and-special-characters/8946/1 "2017-11-04T15:18:11Z")

</div>

I have a problem with using the **Uniform plugin** and adding “special characters” (for a US perspective) in a `form field`.

Eg., if I insert “André” in a simple `input text field`, I get an error from Uniform saying I have to fill the field out. As soon as I change “André” to “Andre”, everything works.

The field in question is a simple `input text field`, and in the Uniform’s controller I am validating the field with the `alpha` rule.

Is there a way to fix this?

Thanks,  
af

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [November 4, 2017, 3:29pm UTC](https://forum.getkirby.com/t/kirby-validator-and-special-characters/8946/2 "2017-11-04T15:29:16Z")

</div>

The alpha validator does not validate `André`, as you can see if you put this in a template:

```auto

<?php if(v::alpha('André')) {
  echo 'Yay, valid!';
} ?>

```

You could use `match` with a regular expression or create a custom validator.

---

<div class="post-metadata">

**Author:** ![afincato](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/afincato/32/3446_2.png) [@afincato](https://forum.getkirby.com/u/afincato)\
**Post date:** [November 4, 2017, 3:42pm UTC](https://forum.getkirby.com/t/kirby-validator-and-special-characters/8946/3 "2017-11-04T15:42:13Z")

</div>

I see, thank you.

I think using `match` with a general enough regular expression is the way to go.

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [February 6, 2025, 5:31pm UTC](https://forum.getkirby.com/t/kirby-validator-and-special-characters/8946/4 "2025-02-06T17:31:49Z")

</div>


