PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Strange symbols

s2Member Plugin. A Membership plugin for WordPress®.

Strange symbols

Postby le formateur » September 26th, 2011, 10:10 am

Hello,

I have strange symbols into the Signup Confirmation Email :

Image

I would like to see : Bonjour Hervé


Thank you for your help.
le formateur
User avatar
le formateur
Registered User
Registered User
 
Posts: 28
Joined: May 26, 2011
Location: France

Re: Strange symbols

Postby Eduan » September 26th, 2011, 10:41 am

That's because the computer you're using doesn't really know that symbol ("é") so it replaces it with that symbol.

To resolve this issue you have to install a language symbol into your computer that has that symbol.
Hope this helps ;) .

P.D. Spanish has that symbol.
Now officially accepting Professional s2Member installations along with Bruce C (a.k.a. Ace).

If you're interested in a Professional s2Member Installation, or a Custom Coding Job, you can send your request here.
User avatar
Eduan
Experienced User
Experienced User
 
Posts: 1154
Joined: August 27, 2011
Location: Taxco de Alarcón, Guerrero, México.

Re: Strange symbols

Postby le formateur » September 26th, 2011, 10:56 am

Hello Eduan,

Thank you for your help but I don't think you right because I have not this issue with the "New User Email Message". Perhaps is it a problem of character encoding in the source file or a problem of type text (plain text or html)...I don't know ?

Thank you for your help.
le formateur
User avatar
le formateur
Registered User
Registered User
 
Posts: 28
Joined: May 26, 2011
Location: France

Re: Strange symbols

Postby Cristián Lávaque » September 28th, 2011, 3:39 am

Thanks for the feedback on this. I'll forward it to Jason.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Strange symbols

Postby le formateur » September 28th, 2011, 3:46 am

Ok I'm waiting for your answer.

Thank you for your help.
le formateur
User avatar
le formateur
Registered User
Registered User
 
Posts: 28
Joined: May 26, 2011
Location: France

Re: Strange symbols

Postby le formateur » September 30th, 2011, 2:47 am

very strange : There is no consistency

Image
le formateur
User avatar
le formateur
Registered User
Registered User
 
Posts: 28
Joined: May 26, 2011
Location: France

Re: Strange symbols

Postby Jason Caldwell » October 1st, 2011, 9:13 pm

What is the CHARSET of your WordPress installation set to please?
SNAG-0013.png
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Strange symbols

Postby le formateur » October 2nd, 2011, 1:49 am

Image
le formateur
User avatar
le formateur
Registered User
Registered User
 
Posts: 28
Joined: May 26, 2011
Location: France

Re: Strange symbols

Postby Jason Caldwell » October 7th, 2011, 11:43 am

Thanks for the follow-up.
Hmm, I'm a little stumped on this one. The only thing I can think of right now, is that it seems the strange character is appearing correctly in your email body, but not in the subject and recipient names/emails. The WordPress function wp_mail() is what s2Member uses, and this function relies upon the PHPMailer class. The PHPMailer class will encode headers ( i.e. recipients and subject line ) using the charset of your Blog ( UTF-8 ) like this: Subject: =?utf-8?B?zrXOu867zrfOvc65zrrOrA==?. If you look in the raw email that was sent, take a look for a line like this and post a sample for us please.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Strange symbols

Postby le formateur » October 8th, 2011, 5:22 am

Hello,

I think I understood what you explain but I don't know where excatly I can find this file/raw.

Thank you for your help.
le formateur
User avatar
le formateur
Registered User
Registered User
 
Posts: 28
Joined: May 26, 2011
Location: France

Re: Strange symbols

Postby Jason Caldwell » October 8th, 2011, 2:00 pm

You'll need the RAW email. For instance, in GMail you can use "Show Original".
SNAG-0021.png
SNAG-0021.png (15.92 KiB) Viewed 182 times
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Strange symbols

Postby le formateur » October 9th, 2011, 3:32 am

Hello,

ok here is the extract file :

Image


Thank you for your help.
le formateur
User avatar
le formateur
Registered User
Registered User
 
Posts: 28
Joined: May 26, 2011
Location: France

Re: Strange symbols

Postby Jason Caldwell » October 9th, 2011, 1:14 pm

Thanks for the follow-up.

Hmm. Well, I think you should have Herv=C3=A9, that is the correct method of encoding the E9 character é. However, in your screenshot I see a mixture of =C3=A9 and =E9, which leads me to think that your original string is a mixture of character encodings ( i.e. not a valid UTF-8 string in its entirety ), and thus, PHP is choking on some of your é characters. Short of that, I suppose it could be a bug in PHP, what version of PHP are you running, and was it compiled with mbstring support?

To test this, create this file and open it in a browser please.
<?php phpinfo(); ?>

Also, what browser was used to enter the email body that you configured?
See: http://tyenki.com/thoughts/tag/character-encoding/
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Strange symbols

Postby le formateur » October 10th, 2011, 1:07 am

Hello,

my version of php : 5.2.17

more details here

thank you for your help.
le formateur
User avatar
le formateur
Registered User
Registered User
 
Posts: 28
Joined: May 26, 2011
Location: France

Re: Strange symbols

Postby Jason Caldwell » October 12th, 2011, 3:35 pm

Thank you. Can you please create a test.php file with this in it for me?
Code: Select all
<?php
error_reporting 
(-1);
ini_set ("display_errors", true);

mb_internal_encoding ("UTF-8");
echo mb_encode_mimeheader ("Hervé", "UTF-8", "Q");
?>
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Strange symbols

Postby le formateur » October 12th, 2011, 3:59 pm

Hello,

the test.php file : http://www.exo-video.com/test.php

Thank you for your help.
le formateur
User avatar
le formateur
Registered User
Registered User
 
Posts: 28
Joined: May 26, 2011
Location: France

Re: Strange symbols

Postby Jason Caldwell » October 12th, 2011, 4:18 pm

OK, you should get this:
=?UTF-8?Q?Herv=C3=A9?=
Why you are NOT? I'm not sure. You might check your text/code editor, be sure the file was created by an editor that supports UTF-8. Other than that, I'm a bit stumped right now, so sorry.

You might check your php.ini file and make sure you have default_charset = utf-8

Also, be sure that you don't have any plugins installed, which might be attempting to filter your blog_charset option in WordPress, which you've told me is set correctly to UTF-8. If another plugin makes attempts to change the blog_charset, it would definitely impact mbstring functionality.

All of that being said, my best guess at this point, is that the string being processed by WordPress/s2Member is NOT valid UTF-8, for whatever reason. Is it possible that you copied/pasted some of those é characters from an editor that was NOT using UTF-8? Or, are any of your on-site forms collecting data in a different charset perhaps?
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Strange symbols

Postby le formateur » October 18th, 2011, 7:08 am

Hello,

We speak about the variable "%%full_name%%". This is not a charset problem because the problem is only for s2member. I have no problem with accents with my personal mail and others. I really think the problem is related to the variable. I do not copy and paste. In addition with "Hervé" or another word with an accent instead of the variable ("%%full_name%%") there is no problem.

Thank you for your help.
le formateur
User avatar
le formateur
Registered User
Registered User
 
Posts: 28
Joined: May 26, 2011
Location: France

Re: Strange symbols

Postby Jason Caldwell » October 19th, 2011, 10:11 pm

Thanks for your follow-up.
In this particular instance, I am stumped. If anyone else has ideas, please let me know.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA


Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot] and 0 guests

cron