Importing ANSI characters

zac
Member Posts: 29
Hi everyone.
I use dataport to put some new records in the table and I have a problem with ANSI chars. For example, in my file which I try to import is the word CITROËN. After importing in a table filed stands CITRO—N. If I directly copy this word from file to table stands CITROËN. Can someone explain to me why it's happend and if have solution form my issue.
I've tried to use EncodingConverter but no help.
Thanks
I use dataport to put some new records in the table and I have a problem with ANSI chars. For example, in my file which I try to import is the word CITROËN. After importing in a table filed stands CITRO—N. If I directly copy this word from file to table stands CITROËN. Can someone explain to me why it's happend and if have solution form my issue.
I've tried to use EncodingConverter but no help.
Thanks
0
Answers
-
PROCEDURE Ansi2Ascii@10(_String@1150001 : Text[250]) _Output@1150000 : Text[250]; BEGIN // Converts from ANSI to ASCII EXIT(CONVERTSTR(_String,'ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®ÁÀÊËÈÍÎÏÌÓßÔÒÚÛÙ', '€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©µ¶·ÒÓÔÖרÞàáâãéêë')); END; PROCEDURE Ascii2Ansi@1150001(_String@1150001 : Text[1024]) @1150000 : Text[1024]; BEGIN // Converts from ASCII to ANSI EXIT(CONVERTSTR(_String,'€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©µ¶·ÒÓÔÖרÞàáâãéêë', 'ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®ÁÀÊËÈÍÎÏÌÓßÔÒÚÛÙ')); END;
RegardsDo you make it right, it works too!0 -
@garak, if I copy your example code. Will it be converted to different chars if i use ctrl-c in this post and ctrl-v in NAV?0
-
-
Tnx garak0
-
[The use of [SOLVED] in the Topic Title is no longer supported. Please edit the first message in the thread and use the field Attribute (below the Subject-field) to put a green checkmark next to the Topic Title. And remove the [SOLVED] text in the Topic Title]0
-
garak wrote:
PROCEDURE Ansi2Ascii@10(_String@1150001 : Text[250]) _Output@1150000 : Text[250]; BEGIN // Converts from ANSI to ASCII EXIT(CONVERTSTR(_String,'ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®ÁÀÊËÈÍÎÏÌÓßÔÒÚÛÙ', '€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©µ¶·ÒÓÔÖרÞàáâãéêë')); END; PROCEDURE Ascii2Ansi@1150001(_String@1150001 : Text[1024]) @1150000 : Text[1024]; BEGIN // Converts from ASCII to ANSI EXIT(CONVERTSTR(_String,'€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©µ¶·ÒÓÔÖרÞàáâãéêë', 'ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®ÁÀÊËÈÍÎÏÌÓßÔÒÚÛÙ')); END;
Regards
Hi Garak,
Do you have these functions in a fob file. I can't seem to use ctrl-v, ctrl-v.0 -
Me too - When I copy & Paste alot of the characters are just little black squares0
-
@garak, didn't see this post before. All the best and take your time to get better.0
-
Sorry for the late response.
I've uploaded it in the download section. It must be availeble in some hours.
RegardsDo you make it right, it works too!0 -
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