cforms II User Forum

Registration is currently disabled.
Guest

FAQs

Login form protected by Login LockDown.


Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

    

Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Capital special characters (Å,Ä and Ö) in Subjet being rejected
August 29, 2007
11:04 pm
Ann
Guest

Hi Oliver and thanks for your previous help (Splitting up “multi select box” values in the subject line)

Your plugin works like a charm but I am a little bit puzzled of how special characters are being parsed to the mail subject line.

Small special characters (å,ä and ö) works just fine while capital special characters (Å,Ä and Ö) gets rejected (omitted).
This problem only occurs in the subject line. In the message both small and capital special characters looks perfect.
Do you know why? could it be a htmlspecialchars issue?

I tried the fix from the FAQ with no success
http://www.deliciousdays.com/cforms-forum?forum=3&…..acters%251

Would a hard-coded solution similar to this post be possible:
http://www.deliciousdays.com/cforms-forum?forum=3&…..acters%251
Where Ö somehow gets decoded to Ö
Ä gets decoded to Ä
and Å gets decoded to Ã…

My blog should be running on UTF-8 and here is an example email
—--Original message—--
From: Bytapocket.nu [mailto:no_reply@bytapocket.nu]
Sent: den 29 augusti 2007 21:10
To: formular@bytapocket.nu
Subject: Compare sjön and SJN

Title: Compare sjön and SJÖN
Category: drama
Submitted on: 29 augusti 2007 @ 21:09

Author: test_author
Author email: test@mail.com

In the example subjet the swedish word for lake (sjön) is used to illustrate how small special characters (ö) is parsed successfully but capital special characters in the subject (Ö) gets omitted.

Browser: IE (6.02)
URL: http://bytapocket.nu/formular/
cforms version: 5.3 

August 29, 2007
11:25 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

Hi Ann,

It's in fact surprising that even the lower case special characters work for you, since cforms doesn't officially support special characters in subject lines.

The general (and perhaps a bit dated) recommendation is not use special characters for any of the email header fields.

I think I'll make an exception for the subject line, but have to think a bit about how to tweak cforms to convert special characters, since the coding is completely different (htmlentities or other encoding functions will not work in this case). Here is an example of the notation:

Subject: =?ISO-8859-1?Q?L=FCsung?= des Umlautproblems

Not sure if it makes it into v5.4. Let's see..

PS:…and thanks for the detailed description!

August 30, 2007
7:43 am
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

Addendum:

On the global "Plugin Settings" admin page you can enable phpmailer support, which if turned on will send any special characters properly formatted in the subject line. I forgot about that.

However, the native cforms @mail() method doesn't, per my explanation above.

Addendum 2:

It's fixed in v5.4 – and was easier than I thought. :-)

August 30, 2007
9:35 pm
Ann
Guest

You are so professional.
I am looking forward to next release.

I cant find the option to enable phpmailer support”-option on the Plugin Setting page though.
Or shall I “Enable specific SMTP server for relaying emails” to be able to use the phpmailer class?

August 30, 2007
10:04 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

Right, I actually meant 'SMTP Server Settings' – which build upon the phpmailer class.

If you enable it and provide your local mail server and possibly (only if required) your mailbox username & password then it should work right away.

Or you can give cforms v5.4 a try (it's in your mailbox :-)

September 1, 2007
9:40 am
Ann
Guest

Thank you so muchSmile.
Version 5.4 solved this issue perfectly. All umlaut-characters are now correctly parsed in the subject line.
Looking forward to test out the new “Tell a friend” feature. Which I think will be very well received within the Wordpress community.

For your information:
When trying out your next release, I found something with the captcha regeneration button (the green circular arrow next to the captcha-picture). When pressing this button in I.E nothing seams to be happening or I might be misinterpreting its functionality.

Once again thanks a million.

September 4, 2007
9:30 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

Ann said:

n:
When trying out your next release, I found something with the captcha regeneration button (the green circular arrow next to the captcha-picture). When pressing this button in I.E nothing seams to be happening or I might be misinterpreting its functionality.

Once again thanks a million.


 

resolved in v5.4

Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
23 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

tracedef: 43

mores: 21

Gyrus: 20

frozenwaste: 18

asuffredini: 15

photoworks: 14

Member Stats:

Guest Posters: 3757

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5355

Posts: 18732

Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass

Moderators: Paul (421), cnymike (8), sonika (95)

Administrators: Oliver (6400), Nicky (3)