I'm trying to import arabic text with a codeunit. When the data is saved in the navision database the arabic text is changed to "junk" characters.
I have changed the Windows regional settings to Arabic. It is possible to directly type arabic text in the navision tables, this is saved correctly. But when I try to import this with a codeunit (or dataport) it's not working.
Does anybody have a solution??
0
Comments
no help with arabic characters, but it might be the same problem: In Denmark we have some (that's 3) special characters.
They are converted wrong when reading/writing infomation to/from NAV.
To handle this, there is a codeunit, where a char mapping between ANSI and OEMI char codes has been made.
E.g.
It used as follows
Allthouhg not solve you problem, I hope this will help you
Thoms Hviid Thorn
I think (if not, it is some other problem) that Arabic characters are double byte-characters. So if you import them via a dataport, you will have a problem. This because the dataport does some conversions on the text imported and does not keep the original values. So you should import them using a file-variable and open it for reading binary-values. But I don't know how it should be handled once you have the info in Navision.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!