I've written an export dataport, where I export some item data.
When executing the dataport, everything works fine in Navision, but in my txt file, the following occurs:
I export for instance the description of an item with value:
10 pièces
In my txt file I find:
10 pi??ces.
This also happens with the following characters: è ö à
Remark: I open the txt file in MS Notepad.
Is this a problem of notepad, or is Navision causing this? And how can I fix it?
Any idea?
0
Comments
that might be the easiest fix
http://www.BiloBeauty.com
http://www.autismspeaks.org
CONVERTSTR('òëø...', 'öíç...');
Good luck!
Jan Hoek
Product Developer
Mprise Products B.V.
But I've read that Navision exports the data in ASCII. Notepad/Wordpad doesn't support ASCII, but ANSI.
So, is there a program that supports ASCII, so that I don't need to do a conversion, and would it then be solved?
Or do I better convert ASCII into ANSI in Navision?
What would you suggest?
When i tried to upload a *.txt file with greek characters i found in my tables ??&#$.
so i made to text constants:
tcFromChars:
αβγδεζηθικλμνξοπρστυφχψωίόώήάέύΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩΈΎΊΌΆΉΏς
with all greek characters and
tcToChars:
ÜÝÞúßüýûþ¢¸¹º¼¾¿±µÚÛ»½°À³àÿ¯®²??‘’“”•–—˜™š›œ?žŸ£¤¥¦¨©ª†ŒˆŠë‡?´
with characters that i found in my table when i uploaded my text file.
(my text file contained the characters in tcFromChars text constants)
Then i used the following code in my program:
If the my Application language is greek i use:
iFieldCode.Description := CONVERTSTR(kadDescr,tcFromChars,tcToChars)
and if my Application language is English i use:
iFieldCode.Description := CONVERTSTR(kadDescr,tcToChars,tcFromChars)
The variable kadDescr contains data from my text file in greek.