Hi can you guy helpme I want to write a text file from navision i can write in the file but som characters as Á or é are not correct when I open the file in the note pad I think it is because of the encoding navision save it in ANSI i think is that. ](*,)
0
Comments
FD Consulting
.tmp file is temporary ANSI file, ptFileName is a full path to file (ie. c:\temp\filename.txt)
Just my 2 cents in this:
In 2013 there was a new System-Property "Textencoding" introduced. Have a sample here:
http://msdn.microsoft.com/en-us/library ... 1(v=nav.71).aspx
Using this, I think you don't need ASCIItoANSI Conversion anymore while exporting data.
Hope this helps.
Thomas
http://www.msdynamics.de/viewtopic.php?f=17&t=25726
Keep in mind that these conversion can only work properly if a special character is part of a specific codepage. You can convert any codepage to unicode but not vice versa if the file contains characters which can't be mapped.
Don't import these converted files to NAV without converting them back to the OEM codepage, unless you can make use of the file encoding parameter that was introduced in NAV 2013 R2.
I have used
http://blogs.msdn.com/b/nav/archive/201 ... -2013.aspx
to export / import files with Swedish special signs åäö..
Regards
Christer
Christer in Stockholm, Sweden