There is a day when every Navision consultant whished Navision supported Unicode. During an implementation I tough if it is so difficult by Microsoft to implement Unicode in Navision? The concept of dataports it’s a simple an easy way to integrate Navision with external applications. Now try to incorporate text files with a custom made Korean ERP, isn’t an easy task. How I wished for Unicode.
In a way to solve 5% the missing of Unicode in Navision, I created two tiny utilities. Download can be made from http://dynamicsuser.net/files/folders/nav_tools/entry84404.aspx
The first is a GUI application to convert text files between two code pages. This application it’s far from a master piece, but solved some issues to me. Most of the used of this utility can be replaced by Notepad.
The second utility is a COM object with the same purpose. It is normally executed before running a dataport. This object accepts 4 parameters:
- Code page of source file- Source file- Code page of destination file- Destination file
None of these utilities solves the problem of having and displaying in same company chartsets from 2 different code pages. I hope that in a near future that problem it’s solved. Probably Unicode is implemented in 6.0
Just a few notes:
Register COM object:
- Since this COM object has made in .NET Framework 2.0 it's necessary to register using RegAsm.exe and not regsvr32
RegAsm.exe is located in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\
Automation object must of type COMEncodingConverter