Montego Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic
Author Message
izone
Newbie
Newbie



Joined: Jan 29, 2006
Posts: 19

PostPosted: Mon Sep 04, 2006 3:08 pm Reply with quote

New problems! Very Happy

Now when I send a Newsletter it wont show persian in right way!

here is an example:

Quote:



مدیریت ایران یاد مفتخر است که شما هموند این تارنما هستید و امیدواریم که تا کنون توانسته باشیم پاسخگوی خواسته های شما از یک تارنمای ایرانی باشیم.

در ماههای گذشته تغییرات زیادی برای رفاه حال شما در ایران یاد داده شده که امیدواریم مورد پسند شما هموند گرامی قرار گرفته باشد. از جمله این تغییرات میتوان تغییر در گرافیک کلی تارنما نام برد.



I've totaly removed both files and sql and reinstalled it but didn't help!

The email is utf-8 and it should show the letters right!

what could be wrong?

Regards.
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1391

PostPosted: Mon Sep 04, 2006 6:01 pm Reply with quote

Please compare the version of templates/Fancy_Content/template.php between the Persian download and the one you are testing with. Check the lines where $emailfile is being defined down towards the bottom (I would post the code here, but NukeSentinel is not letting me... Crying or Very sad ), is there a meta tag which has the charset=utf-8 on it?

You or your friend had modified it to be UTF-8, had you accidentally replaced that with my 01.03.01 version?

_________________
To err is human, but when the eraser wears out ahead of the pencil, youre overdoing it.
-- Josh Jenkins 
View user's profile Send private message Visit poster's website
izone
Newbie
Newbie



Joined: Jan 29, 2006
Posts: 19

PostPosted: Tue Sep 05, 2006 4:47 am Reply with quote

[quote="montego"]Please compare the version of templates/Fancy_Content/template.php between the Persian download and the one you are testing with. Check the lines where $emailfile is being defined down towards the bottom (I would post the code here, but NukeSentinel is not letting me... Crying or Very sad ), is there a meta tag which has the charset=utf-8 on it?

You or your friend had modified it to be UTF-8, had you accidentally replaced that with my 01.03.01 version?[/quote]

Thanks for reply!

I checked it and it was utf-8. The strange thing is when I send newletter by email it doesn't sent any template with it!! but when I preview it on site it show the template and the text is OK.

I have tested with all of templates and it wont send template to email.

I will send you a newletter in Persian with Plane Gray now so you see it by yourself!
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1391

PostPosted: Tue Sep 05, 2006 7:32 am Reply with quote

I may have found it.

=== OPEN ===

modules/HTML_Newsletter/admin/functions.php

=== FIND ===

Code:
   $headers      = "MIME-Version: 1.0\n"
                        ."Content-Type: text/html; charset=iso-8859-1\r\n"
                        ."From: $msnl_sSender<adminmail>\r\n"
                        ."Return-Path: $adminmail\r\n"
                        ."Reply-To: $adminmail\r\n"
                        ."X-Mailer: MSHNL\r\n"
                        ."X-Sender-IP: $REMOTE_ADDR\r\n"
                        ."X-Priority: 6\r\n";


=== REPLACE WITH ===

Code:
   $headers      = "MIME-Version: 1.0\n"
                        ."Content-Type: text/html; charset=utf-8\r\n"
                        ."From: $msnl_sSender<adminmail>\r\n"
                        ."Return-Path: $adminmail\r\n"
                        ."Reply-To: $adminmail\r\n"
                        ."X-Mailer: MSHNL\r\n"
                        ."X-Sender-IP: $REMOTE_ADDR\r\n"
                        ."X-Priority: 6\r\n";


Notice that the email headers charset was not set to utf-8.

_________________
To err is human, but when the eraser wears out ahead of the pencil, youre overdoing it.
-- Josh Jenkins 
View user's profile Send private message Visit poster's website
izone
Newbie
Newbie



Joined: Jan 29, 2006
Posts: 19

PostPosted: Tue Sep 05, 2006 8:14 am Reply with quote

Yes! that was it! Very Happy

I don't know why it was changed and how??? After patch 3.2 it began to give me problem. Even when I downloaded new files from here and installed again the problem wasn't gone!

Soon I will download persian ver. from here and install it on my test site and make a good look at it. I maybee have forgot to make some changes like this one in functions.php. Strange is it works for all other but me Embarassed

Thanks Montego again!
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1391

PostPosted: Tue Sep 05, 2006 8:40 am Reply with quote

I checked the Persian download already and it was not changed. I will either post a "Sticky" or make this thread a sticky to help others with this.

_________________
To err is human, but when the eraser wears out ahead of the pencil, youre overdoing it.
-- Josh Jenkins 
View user's profile Send private message Visit poster's website
izone
Newbie
Newbie



Joined: Jan 29, 2006
Posts: 19

PostPosted: Tue Sep 05, 2006 9:08 am Reply with quote

Thanks!

I maybee have exchanged the downloaded files from here with those I allready have on my computer. Wink
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1391

PostPosted: Tue Sep 05, 2006 9:18 am Reply with quote

Sorry, what I meant to say is that the Persian Nuke version does not have utf-8 in functions.php. I will not be posting a new download, but have included a new enhancement idea to make this configurable.

_________________
To err is human, but when the eraser wears out ahead of the pencil, youre overdoing it.
-- Josh Jenkins 
View user's profile Send private message Visit poster's website
izone
Newbie
Newbie



Joined: Jan 29, 2006
Posts: 19

PostPosted: Tue Sep 05, 2006 9:30 am Reply with quote

Ah, ok.

I am donig a few thing at the same times now and I missunderstood your post Laughing

I'll will right about it in my forums too, so everybody could read about it.

Sorry for missing it when I was working on persian ver. Embarassed
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1391

PostPosted: Tue Sep 05, 2006 10:17 am Reply with quote

Not a problem.

I have also posted a News article on the front page pointing to this thread.

_________________
To err is human, but when the eraser wears out ahead of the pencil, youre overdoing it.
-- Josh Jenkins 
View user's profile Send private message Visit poster's website
firerm
Newbie
Newbie



Joined: Apr 24, 2007
Posts: 1

PostPosted: Tue Apr 24, 2007 1:11 pm Reply with quote

montego wrote:
I may have found it.

=== OPEN ===

modules/HTML_Newsletter/admin/functions.php

=== FIND ===

Code:
   $headers      = "MIME-Version: 1.0\n"
                        ."Content-Type: text/html; charset=iso-8859-1\r\n"
                        ."From: $msnl_sSender<adminmail>\r\n"
                        ."Return-Path: $adminmail\r\n"
                        ."Reply-To: $adminmail\r\n"
                        ."X-Mailer: MSHNL\r\n"
                        ."X-Sender-IP: $REMOTE_ADDR\r\n"
                        ."X-Priority: 6\r\n";


=== REPLACE WITH ===

Code:
   $headers      = "MIME-Version: 1.0\n"
                        ."Content-Type: text/html; charset=utf-8\r\n"
                        ."From: $msnl_sSender<adminmail>\r\n"
                        ."Return-Path: $adminmail\r\n"
                        ."Reply-To: $adminmail\r\n"
                        ."X-Mailer: MSHNL\r\n"
                        ."X-Sender-IP: $REMOTE_ADDR\r\n"
                        ."X-Priority: 6\r\n";


Notice that the email headers charset was not set to utf-8.


when you do that Greeks works too Smile when i Translate i will send you the lang-greek.php


Thank you so much Smile
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1391

PostPosted: Tue Apr 24, 2007 2:54 pm Reply with quote

Thanks for the reminder! I have not added the Greek translation to my downloads here. It is in the RavenNuke(tm) 2.10.00 distro. PM me your email address and I'll send you what I have for the greek language files for you to review. Thanks!

_________________
To err is human, but when the eraser wears out ahead of the pencil, youre overdoing it.
-- Josh Jenkins 
View user's profile Send private message Visit poster's website
Guardian
Site Admin
Site Admin



Joined: Jul 18, 2005
Posts: 400

PostPosted: Wed Apr 25, 2007 7:02 pm Reply with quote

M, I'm just thinking out loud here but...
Isn't the charset defined in one of the core language files (like the date format string)?
If it was, then it might be easy to automate this by checking the site language preference?
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1391

PostPosted: Thu Apr 26, 2007 7:49 am Reply with quote

Well, been thinking about it and I need to do more research on this. For a single language site, you might be right, but what about someone who is supporting say both Persian and English?

What I really haven't even addresses yet, but probably should, is the whole multilingual issue.
 
View user's profile Send private message Visit poster's website
Guardian
Site Admin
Site Admin



Joined: Jul 18, 2005
Posts: 400

PostPosted: Thu Apr 26, 2007 9:44 am Reply with quote

Yes, I had thought about the multilingual aspect but I suspect there might have to be a compromise somewhere down the line.
It's possible to retrieve user prefs and send the newsletter with the appropriate charset but then what happens regarding the newsletter thats available on-site? It would be impractical to have one newsletter per charset (which I think you would have to do to remain XHTML compliant as it can throw a wobbly with different charsets).
As you say, more research is needed and it just goes to show that even when something seems simple, very often it isnt when you start digging.
Good luck! Smile
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 4 Hours
 
Forums ©
linear-bunch