Text Charset

markborges
markborges Member Posts: 170
Hi guys. Back to the problems with Navision handling charsets, I have a problem:

I have a text in ASCII format on a blob field. When I try to send this text over a DLL to send the e-mail, the text is all f** with strange characters.

Then I download the Ansi-Ascii converter in the Downloads area so that I could send the correct characters. The problem is that this function is helping me parcially.

Some characters are being converted into the right ones, but some other characters are not... Space (CHR(32)) is an example. When I use the function, all space characters become a 'ÿ' character.

Is there any other function that could convert that for me?

Thanks in advance!
Marcelo Borges
D365 Business Central Solutions Architect
BC AL/NAV C/AL Developer
BC Repositories.com

Answers

  • kine
    kine Member Posts: 12,562
    May be that the convertor is not working correctly for your codepage. You need to revise the mapping table used in the convertor.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • markborges
    markborges Member Posts: 170
    Hi there Kine.

    Actually, when I tried to copy and paste the code from the Text version of the Converter object, some char's could've been damaged.

    I imported the FOB object and now it works perfectly.

    Thanks for the reply!

    :wink:
    Marcelo Borges
    D365 Business Central Solutions Architect
    BC AL/NAV C/AL Developer
    BC Repositories.com
  • kine
    kine Member Posts: 12,562
    :-) Yes, it depends on what was used to open the text file. Do not forget that text file is in dos codepage but when you open it by notepad, notepad will use Windows codepage and it is why the chars are cross-converted...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.