Hi,
I want to import text (just once for setup) in NAV 2009 R2 codepage 1250 text. As I understand, I have to convert to codepage 852 to
import it per Dataport.
Does anybody know how to convert it in a correct way. A solution via Notepad++ would be also fine.
Did't geht the right way so far.
Thanks.
0
Answers
https://www.hanselman.com/blog/HowToConvertATextFileWithASpecificCodepageToUTF8UsingVisualStudioNET.aspx
http://www.msdynamics.de/viewtopic.php?f=17&t=25726
In your case it would look like this:
Call the function together with the path to your source file, the converted one will be written to the same folder.
Keep in mind that further processing into NAV requires your OS regional settings to have a country in middle europe that uses these codepages (like PL, CZ, etc.) as well for the special characters to look right (also for the Windows editor, in Notepad++ you can change the codepage encoding settings to check the result visually beforehand).
I also found another one : https://mibuso.com/downloads/convertasciitoansi-fob-example
All nicely inside C/AL without .exe, .dll, or PoSh.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Western Europe, Skandinavia, also Estonia
ANSI = Codepage 1252
ASCII = Codepage 850
In Central/Eastern Europe (without Baltic States)
ANSI = Codepage 1250
ASCII = Codepage 852
Baltic States
ANSI = Codepage 1257
ASCII = Codepage 775
That's why I created these scripts. You can easily adjust them for all purposes.