Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Internationalization (v4)
 Outlook Express doesn't recognize greek codepage
 Forum Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

Esoterica.gr
Starting Member

Greece
43 Posts

Posted - 15 April 2002 :  00:14:46  Show Profile  Visit Esoterica.gr's Homepage
Hello again,

I have this problem (??) from the beginning of using Snitz Forums and I tried to figure out a solution but i wasn't able until now. So here is the problem and my request for any kind person knows a solution.
We run a translated Snitz Forums (40b3) installation using Lang1032.asp (translated into Greek) and CDONTS method for sending e-mail messages.

The problem is that Outlook Express (this heavily used e-mail client) can't recognize the codepage of the messages (or the messages are not send in the right codepage - it's iso-8859-1 as I can see in the message source) and all Greek words seem scrambled unless I choose the right encoding (Greek Windows) from Menu>View.

I know the trick and apply it each time I have a message send from the Forums but the great majority of the Forums' users don't and they think that the scrambled messages they get are caused by a code bug and they think they are unreadable.

So, what's the right way to make CDONTS (and the Forums' code) to send e-mail messages in a form that Outlook Express understands that the message contains Greek text (or any language other than english) and to apply the right encoding for it?

I have the same problem with the forms I create for webpages (using ASP and CDONTS) not related though with Snitz Forums but I think that the question is somehow general too.

Thanks in advance

<

Deleted
deleted

4116 Posts

Posted - 15 April 2002 :  04:57:41  Show Profile
Here is a detailed info on CDO for NTS: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cdo/html/_denali_cdo_for_nts_library.asp?frame=true

Look also here: http://www.cdolive.com/cdo.htm

This is exactly what you look for (I hope):
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cdo/html/_denali_setlocaleids_method_cdonts_newmail_object_.asp

Here is a list of supported codepage values by this function.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/intl/unicode_81rn.asp

So, you may like to try to change the inc_mail.asp CDONTS part from:

case "cdonts"
Set objNewMail = Server.CreateObject ("CDONTS.NewMail")
objNewMail.BodyFormat = 1
objNewMail.MailFormat = 0
on error resume next '## Ignore Errors
objNewMail.Send strSender, strRecipients, strSubject, strMessage
If Err <> 0 Then
Err_Msg = Err_Msg & "<li>" & fLang(strLangInc_Mail00010) & " " & Err.Description & "</li>"
End if
on error resume next '## Ignore Errors


To:


case "cdonts"
Set objNewMail = Server.CreateObject ("CDONTS.NewMail")
objNewMail.BodyFormat = 1
objNewMail.MailFormat = 0
objNewMail.SetLocaleIDs (28597)
on error resume next '## Ignore Errors
objNewMail.Send strSender, strRecipients, strSubject, strMessage
If Err <> 0 Then
Err_Msg = Err_Msg & "<li>" & fLang(strLangInc_Mail00010) & " " & Err.Description & "</li>"
End if
on error resume next '## Ignore Errors


I did not try this. Please do try it and post here the result. v4b04 will inlude support for this.

If you have a working language file, can you send it to me please? See the info on my signature.


Think Pink
==> Start Internationalization Here

Edited by - bozden on 15 April 2002 05:04:41<
Go to Top of Page

Esoterica.gr
Starting Member

Greece
43 Posts

Posted - 15 April 2002 :  08:11:10  Show Profile  Visit Esoterica.gr's Homepage
bozden you are great!

Thank you for the detailed information, especially http://www.cdolive.com/cdo.htm is extremely useful and user friendly.

I'm implementing right now the fix you are suggesting and will post the results afterwards.

I'm sending you the language file.

<
Go to Top of Page

Esoterica.gr
Starting Member

Greece
43 Posts

Posted - 15 April 2002 :  19:01:17  Show Profile  Visit Esoterica.gr's Homepage
Go to Top of Page

Deleted
deleted

4116 Posts

Posted - 16 April 2002 :  07:26:28  Show Profile
The above post was very helpful. We need #2 or #4 to work, and the problem is

Content-Transfer-Encoding: 7bit


I could not find a property/method to set this in cdo 1.2.1 newmail object though.

I'll search some more...

Think Pink
==> Start Internationalization Here<
Go to Top of Page

Deleted
deleted

4116 Posts

Posted - 16 April 2002 :  07:45:13  Show Profile
That encoding (ith all = signs) is MIME.

Probably the only way is to use HTML mail and set the charset (ISO) in the header of the mail.


Think Pink
==> Start Internationalization Here<
Go to Top of Page

Esoterica.gr
Starting Member

Greece
43 Posts

Posted - 16 April 2002 :  09:26:24  Show Profile  Visit Esoterica.gr's Homepage
I've already tried this with a mail sending asp page and it doesn't work... "Content-Transfer-Encoding: 7bit" issue persists!

Here are the settings of the asp page:

HTML = HTML & "<html>"
HTML = HTML & "<head>"
HTML = HTML & "<meta http-equiv=""Content-Type"" content=""text/html; charset=iso-8859-7"">"
etc......

.....
myMail.BodyFormat=0
myMail.MailFormat=0
myMail.Body=HTML
myMail.SetLocaleIDs (28597)
.........


There should be another way around. I don't believe that MS hasn't anticipated the problem with foreign codepages when developing the CDO methods.
(But this may be the situation after all, i don't know....)



<
Go to Top of Page

Esoterica.gr
Starting Member

Greece
43 Posts

Posted - 16 April 2002 :  09:52:04  Show Profile  Visit Esoterica.gr's Homepage
Another question I have:

Do you have the same problem with Turkish characters in mails sent through the forum at http://www.istanbulmuzesi.org/forum ?

<
Go to Top of Page

Deleted
deleted

4116 Posts

Posted - 16 April 2002 :  13:48:06  Show Profile
quote:

Another question I have:

Do you have the same problem with Turkish characters in mails sent through the forum at http://www.istanbulmuzesi.org/forum ?





I don't use CDONTS there. I tried some other components and they have extra setting for this purpose which do not cause any problem until now.


Think Pink
==> Start Internationalization Here<
Go to Top of Page

Esoterica.gr
Starting Member

Greece
43 Posts

Posted - 17 April 2002 :  20:49:06  Show Profile  Visit Esoterica.gr's Homepage
Well, I surrender!! I can't find a proper way to configure CDONTS properly and I don't think there is one either. I "played" with every and each one of the rellevant properties of the NewMail Object (and several combinations of them) but haven't found a proper method. The "Content-Transfer-Encoding: 7bit" issue persists. I think that MS was very much english oriented on this...

And anyway they seem to have realised that and introduced CDOSYS !
Yes, these Data Objects seem much more sofisticated and with a lot more of properties than CDO 1.21 or CDONTS. As I have already found CDOSYS supports (!!) "quoted-printable" content-transfer-encoding.

I used to believe that CDOSYS is only included with Windows XP but I realised that it is also included with Win2000 server too (such as the one hosting our Site - as CDO for Windows 2000)!!

Here is a link from MSDN Library providing a messaging example using this method: http://msdn.microsoft.com/library/en-us/cdosys/html/_cdosys_examples_constructing_a_bodypart_hierarchy.asp

As you can see the method seems very detailed and apparently powerful but may be alot more difficult to configure than CDONTS. I'm searching to find some friendly tutorials to understand how it works as I'm not the "master of programming" and I always try to find good advices from more capable people.

So If someone has to provide anything to help average Web-masters like me please do.

RichardKinser has provided a link to updated files for additional email components for snitz forums(including CDOSYS) on: http://forum.snitz.com/forum/topic.asp?TOPIC_ID=25984

(hope we can find a way to the "problem" soon)

<
Go to Top of Page

Esoterica.gr
Starting Member

Greece
43 Posts

Posted - 17 April 2002 :  20:52:41  Show Profile  Visit Esoterica.gr's Homepage
(forgot) A thing that i've found and worries me is a post saying that CDOSYS may have trouble delivering to Yahoo! and Hotmail accounts

http://forum.snitz.com/forum/topic.asp?TOPIC_ID=25870

<
Go to Top of Page

Esoterica.gr
Starting Member

Greece
43 Posts

Posted - 17 April 2002 :  21:43:59  Show Profile  Visit Esoterica.gr's Homepage
Another thing i found out (not very delayed thankfuly) is that you may not use the files with the updated e-mail components as is because they are not translated yet (don't contain the Language strings required for international forums installation - 4.0b3+)



Edited by - Esoterica.gr on 17 April 2002 21:52:21<
Go to Top of Page

Deleted
deleted

4116 Posts

Posted - 18 April 2002 :  07:01:04  Show Profile
quote:

Another thing i found out (not very delayed thankfuly) is that you may not use the files with the updated e-mail components as is because they are not translated yet (don't contain the Language strings required for international forums installation - 4.0b3+)

Edited by - Esoterica.gr on 17 April 2002 21:52:21



Sorry, but I could not understand this. What is not translated? If you need CDOSYS support, I can give it here (it is in v3.4).



Think Pink
==> Start Internationalization Here<
Go to Top of Page

Esoterica.gr
Starting Member

Greece
43 Posts

Posted - 18 April 2002 :  09:02:15  Show Profile  Visit Esoterica.gr's Homepage
Ok, sorry bozden, I meant that the NewMailComponents files that RichardKinser provided, which include support for 5 more (I think) mail components than the official 40b3 distribution don't contain the references to the Lang****.asp files through fLang function. An example:

original 40b3 code (inc_mail.asp):

Err_Msg = Err_Msg & "<li>" & fLang(strLangInc_Mail00010) & " " & objNewMail.Response & "</li>"


new mail components' file:

Err_Msg = Err_Msg & "<li>Your request was not sent due to the following error: " & Err.Description & "</li>"

Maybe I've just missed an internationalized such distribution of new mail components files?? If that's the case I'm sorry

<
Go to Top of Page

Deleted
deleted

4116 Posts

Posted - 18 April 2002 :  11:52:54  Show Profile
I see. That file is from v3.4 which is not internationalized. v4b04 will use that same file. Btw: where did you find that file?

Just replace the strings with fLang() calls, it will work.


Think Pink
==> Start Internationalization Here<
Go to Top of Page

Esoterica.gr
Starting Member

Greece
43 Posts

Posted - 18 April 2002 :  12:46:48  Show Profile  Visit Esoterica.gr's Homepage
I provided the link on a previous post, same topic

quote:
RichardKinser has provided a link to updated files for additional email components for snitz forums(including CDOSYS) on: http://forum.snitz.com/forum/topic.asp?TOPIC_ID=25984


I'll replace the strings and I'll send you the files in case someone else wants them


<
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 Forum Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.19 seconds. Powered By: Snitz Forums 2000 Version 3.4.07