dataport export into txt file : wrong characters

bbass
Member Posts: 7
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?
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
-
does it have to be (è) can you find & replace it with a regular (e)?
that might be the easiest fix0 -
I really need the characters like "è" because they are frequently used in the descriptions and it is French and replacing it into "e" would be a big mistake0
-
This is clearly a character set issue. Navision writes ASCII, most other Windows apps use ANSI. Search this forum, or mbsonline.org for a conversion function, which looks something like this:
CONVERTSTR('òëø...', 'öíç...');
Good luck!Kind regards,
Jan Hoek
Product Developer
Mprise Products B.V.0 -
Thanks !
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?0 -
I would suggest you take a look at this download to convert ASCII to ANSI and vice versa: http://www.mibuso.com/dlinfo.asp?FileID=287No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0
-
I had the same problem with greek characters.
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.0 -
Thanks for all the answers! Very helpful0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions