Export UTF-8 Textfile

Hi folks,

I wrote a small codeunit to create a textfile with some data from NAV which will be uploaded to a customer's FTP. No problem at all. This customer wants to have the file in UTF-8 encoding, is there any quick way to convert the file with NAV possibilities?

thanks and advance, regards

Mog

Comments

  • Mog wrote:
    Hi folks,

    I wrote a small codeunit to create a textfile with some data from NAV which will be uploaded to a customer's FTP. No problem at all. This customer wants to have the file in UTF-8 encoding, is there any quick way to convert the file with NAV possibilities?

    thanks and advance, regards

    Mog

    you can not define encoding in nav textfile functions. simple way is to use ado stream.just google it.
  • What version are you?
    If you are on 2009 you can use xmlport as dataport and specify the encoding as UTF-8
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • I am using 2009. Thanks for your suggestions, I will give them a try.
  • You are welcome and let us know how it goes.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • Just some additional info.

    XMLPorts that are used as dataports cannot be run from classic client. They run from RTC only.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n