Export UTF-8 Textfile

MogMog Member Posts: 34
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

  • ayhan06ayhan06 Member Posts: 210
    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.
  • ara3nara3n Member Posts: 9,256
    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
  • MogMog Member Posts: 34
    I am using 2009. Thanks for your suggestions, I will give them a try.
  • ara3nara3n Member Posts: 9,256
    You are welcome and let us know how it goes.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • ara3nara3n Member Posts: 9,256
    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
Sign In or Register to comment.