Follow us on Facebook and Twitter!

Problem with ä,ö,ü,ß..

First of all, I want to say "Thank You!" for this really great script!!
I've tested the Script on my Website for more than two weeks but no visitor left a comment..
Now, I know the Problem. You can't submit a comment which includes ö's, ä's, ü's....
Error Report: 'The comment entered was too short. Please enter a longer comment.'
In the german language we often use words which includes mutated vowels (correct translation?!).
So this is a real problem.
Do you have any idea how to fix this problem?

Please let me know.
Kind regards


This likely means that your page is not UTF-8 encoded.

Did you add the UTF-8 charset inside your head tag? Take a look at the integration guide and the example files to see how this should be done.

You can check the encoding in Firefox using Tools -> Page Info.
Have you completed the interview?

Thanks for this quick answer.

Now I've added the UTF-8 charset inside the head tag.
But I can't insert mutated vowels in the "Name" and "Town" field.
I didn't find any option to change this at the admin panel.

In the script I've found this:

Quote:function cmtx_validate_name ($name) { //checks whether name was valid

if (cmtx_is_encoding_iso($name)) { //if encoding is ISO-8859-1
if (!preg_match('/^[a-z0-9&\-\'. ]+$/i', $name) || !preg_match("/^[a-z]+/i", $name)) { //if the submitted name does not validate
cmtx_error(CMTX_ERROR_MESSAGE_INVALID_NAME); //reject user for entering invalid name

Is this the right part of the comment to fix this problem? =P


I'm not sure that anything needs "fixing" because mutated vowels work fine on the demo. I think that it's just a matter of getting the charset of your page to be UTF-8 but without being able to see your website I can't determine whether you have achieved that correctly.

Nevertheless if you want to edit the processing code then the relevant function for the error message that you posted is cmtx_comment_minimum.
Have you completed the interview?
Hey Steven,
first the link to my website:
The script is used as guestbook ("Gästebuch") and commentfunction ("Fotogalerie")

After adding this code (<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>) into the head-tag of every page, I converted the php-Files with Notepad++ into UTF-8 without BOM.

It seems to be working now. I entered the following as a comment and it only produced errors about there being no name and email address.

Quote:fd fdd f ä ö ü ß ffwds
Have you completed the interview?
I tested it one's again but I still have the problem that I can't insert a name or a town which includes mutated vowels...
I'm sure it's not a big deal to make mutated wovels possible for names and towns....
As long as it doesn't work, I'll add an advice in the error message.
Thanks a lot for your help!
This support is more than great and fast =)

I see what you mean now. I've been trying out a new solution:

In comments/includes/functions/processor.php, replace the cmtx_is_encoding_iso function with this:

PHP Code:
function cmtx_is_encoding_iso ($entry) { //checks whether character encoding is ISO-8859-1

if (mb_check_encoding($entry"ASCII")) {
    } else {
//end of is-encoding-iso function 
Have you completed the interview?
Yeah this is really great!
Problem solved - no more questions! Big Grin
That was exactly what I was looking for.
Thanks a lot!
Hi Steven,

I want to allow the commenters to use ä, Ä, ö, Ö, ü, Ü and ß in their email and url (IDNs).

I think I have to change the function preg_match. But where (I have got 129 hits in Notepad Big Grin) and how?

Thanks in advance!

kr, kooler

Possibly Related Threads…
Thread Author Replies Views Last Post
  Data base problem Ron Wood 3 585 23-Nov-2017, 09:09 PM
Last Post: Steven
  Problem with utf-8 and ä ö ü ß Steve 5 7,690 20-Jul-2013, 02:22 PM
Last Post: Steven
  Recent Comments: Url Maxlength redirect problem donovanes 2 2,540 31-May-2013, 05:57 PM
Last Post: donovanes
  Logging In Problem NathanApplewhite 1 2,746 19-Mar-2013, 03:37 PM
Last Post: Steven
  Lower case url problem llamadave 1 1,622 02-Jul-2012, 09:19 PM
Last Post: Steven
  Strange problem when editing comments PepperoniPizza 3 2,983 12-Dec-2011, 07:45 PM
Last Post: Steven
  problem  geese10 7 10,637 16-Nov-2011, 01:02 PM
Last Post: geese10
  Problem with table prefixes Harlquinth 10 5,553 09-Oct-2011, 04:15 AM
Last Post: marcus33cz

Forum Jump:

Users browsing this thread: 1 Guest(s)