| Author |
Message |
izone
Newbie


Joined: Jan 29, 2006
Posts: 19
|
Posted:
Mon Sep 04, 2006 3:08 pm |
|
New problems!
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. |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1360
|
Posted:
Mon Sep 04, 2006 6:01 pm |
|
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... ), 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 |
|
|
 |
izone
Newbie


Joined: Jan 29, 2006
Posts: 19
|
Posted:
Tue Sep 05, 2006 4:47 am |
|
[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... ), 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! |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1360
|
Posted:
Tue Sep 05, 2006 7:32 am |
|
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 |
|
|
 |
izone
Newbie


Joined: Jan 29, 2006
Posts: 19
|
Posted:
Tue Sep 05, 2006 8:14 am |
|
Yes! that was it!
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
Thanks Montego again! |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1360
|
Posted:
Tue Sep 05, 2006 8:40 am |
|
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 |
|
|
 |
izone
Newbie


Joined: Jan 29, 2006
Posts: 19
|
Posted:
Tue Sep 05, 2006 9:08 am |
|
Thanks!
I maybee have exchanged the downloaded files from here with those I allready have on my computer.  |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1360
|
Posted:
Tue Sep 05, 2006 9:18 am |
|
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 |
|
|
 |
izone
Newbie


Joined: Jan 29, 2006
Posts: 19
|
Posted:
Tue Sep 05, 2006 9:30 am |
|
Ah, ok.
I am donig a few thing at the same times now and I missunderstood your post
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.  |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1360
|
Posted:
Tue Sep 05, 2006 10:17 am |
|
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 |
|
|
 |
firerm
Newbie


Joined: Apr 24, 2007
Posts: 1
|
Posted:
Tue Apr 24, 2007 1:11 pm |
|
| 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 when i Translate i will send you the lang-greek.php
Thank you so much  |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1360
|
Posted:
Tue Apr 24, 2007 2:54 pm |
|
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 |
|
|
 |
Guardian
Site Admin


Joined: Jul 18, 2005
Posts: 387
|
Posted:
Wed Apr 25, 2007 7:02 pm |
|
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? |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1360
|
Posted:
Thu Apr 26, 2007 7:49 am |
|
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. |
| |
|
|
 |
Guardian
Site Admin


Joined: Jul 18, 2005
Posts: 387
|
Posted:
Thu Apr 26, 2007 9:44 am |
|
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!  |
| |
|
|
 |
|
|