Options

SMTP OCX Version v.1.6 charset

etschetsch Member Posts: 6
the SMTP - OCX works fine, but we have a little problem :

the charset is us-ascii, but we need iso-8859-1 (most in Germany)

has someone an idee, where can I change this ... ?

Thanks, Jens

Comments

  • Options
    kinekine Member Posts: 12,562
    If you mean in subject, you must encode it. If you mean in text, I think that there is no problem if you set it into HTML and set the codepage through tag.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Options
    etschetsch Member Posts: 6
    I mean in text - we send mails only in plain text, not in html ....
  • Options
    kinekine Member Posts: 12,562
    May be that in text of the mail you can use same thing as in subject...

    For example if you write into subject this:

    =?iso-8859-2?Q?ABC=C8DE?=

    it will be showed as

    ABCČDE

    =C8 mean that it is character 0xC8 (character with this hexadecimal number in charset iso-8859-2 = Latin 2)

    I found it in definition of Mail format....
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Options
    etschetsch Member Posts: 6
    thanks - I will try it ... :)
  • Options
    tyrexxxtyrexxx Member Posts: 13
    You can send a message with subject 'abcdefghijklmno...' to you yourself on your language and use incoming string for convertion like this:
    PROCEDURE EncodedString@1000000000(Str@1000000000 : Text[1024]) : Text[1024];
        BEGIN
          EXIT(CONVERTSTR(Str,'BJBFLASDHFDLFHBDSLHDSFdsfsajhflaskdjfha',
                              'asfdkjsdgfakweqr;sfdkeLDKJFDHFHSGWEPRTY'));
        END;
    
    and after use
    SMTP.SetSubject(EncodedString('Message on my language'));
    
  • Options
    kinekine Member Posts: 12,562
    tyrexxx wrote:
    You can send a message with subject 'abcdefghijklmno...' to you yourself on your language and use incoming string for convertion like this:
    PROCEDURE EncodedString@1000000000(Str@1000000000 : Text[1024]) : Text[1024];
        BEGIN
          EXIT(CONVERTSTR(Str,'BJBFLASDHFDLFHBDSLHDSFdsfsajhflaskdjfha',
                              'asfdkjsdgfakweqr;sfdkeLDKJFDHFHSGWEPRTY'));
        END;
    
    and after use
    SMTP.SetSubject(EncodedString('Message on my language'));
    

    there is one problem: There is not conversion 1 to 1... there is conversion 1 character to 3 character... :-)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
Sign In or Register to comment.