diff --git a/django/contrib/auth/tests/test_forms.py b/django/contrib/auth/tests/test_forms.py
index 0efd5fb..f6876b1 100644
--- a/django/contrib/auth/tests/test_forms.py
+++ b/django/contrib/auth/tests/test_forms.py
@@ -1,3 +1,4 @@
+# coding=utf-8
 from __future__ import unicode_literals
 
 import os
@@ -48,6 +49,18 @@ class UserCreationFormTest(TestCase):
         self.assertEqual(form["username"].errors,
                          [force_text(form.fields['username'].error_messages['invalid'])])
 
+    def test_invalid_non_ascii_username(self):
+        data = {
+            'username': 'jsmithé',
+            'password1': 'test123',
+            'password2': 'test123',
+        }
+        form = UserCreationForm(data)
+        self.assertFalse(form.is_valid())
+        #print(form.fields['username'].error_messages)
+        self.assertEqual(form["username"].errors,
+                         [force_text(form.fields['username'].error_messages['invalid'])])
+
     def test_password_verification(self):
         # The verification password is incorrect.
         data = {
diff --git a/django/core/validators.py b/django/core/validators.py
index cc71b72..2d4fd85 100644
--- a/django/core/validators.py
+++ b/django/core/validators.py
@@ -46,6 +46,7 @@ class RegexValidator(object):
         Validates that the input matches the regular expression
         if inverse_match is False, otherwise raises ValidationError.
         """
+        print(self.regex.pattern, self.regex.flags)
         if not (self.inverse_match is not bool(self.regex.search(
                 force_text(value)))):
             raise ValidationError(self.message, code=self.code)
