Manage special characters in a dataport

ams79
Member Posts: 39
Hello everyone,
Do you have any way to manage efficiently special characters in a dataport?
characters like ñ,ó,Ñ,ã,ª, etc
Thanks!!
Do you have any way to manage efficiently special characters in a dataport?
characters like ñ,ó,Ñ,ã,ª, etc
Thanks!!
0
Comments
-
Timo Lässer
Microsoft Dynamics NAV Developer since 1997
MSDynamics.de - German Microsoft Dynamics Community - member of [clip]0 -
Sometimes, the dataport does not pick up wierd characters. For example, I recently dealt with a dataset that had carriage returns. How do you DELCHR a carriage return?Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
Alex Chow wrote:Sometimes, the dataport does not pick up wierd characters. For example, I recently dealt with a dataset that had carriage returns. How do you DELCHR a carriage return?
txtCR text:30txtCR := 'X'; txtCR[1] := 13; txtTheText := DELCHR(txtTheText,'=',txtCR);
Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
ASCII2ANSI does not work for all codepages, i.e. Slovenian
I solved problem importing all special characters in a table, determining and inserting ASCII no. to it.
This way I found real ASCII code and then I could convertstr properly.SpecCode - OnBeforeEvaluateField(VAR Text : Text[1024]) EVALUATE(charact,COPYSTR(Text,1,1)) ; chrss := charact ;
Using variables
charact Char
chrss IntegerSpecChars- OnAfterImportRecord() Chrs := chrss ;
And inserting in to table SpecChars
SpecCode Text 30
Chrs Integer
(var names are not quite recognizable so excuse me...)0 -
kriki wrote:Try this:
txtCR text:30txtCR := 'X'; txtCR[1] := 13; txtTheText := DELCHR(txtTheText,'=',txtCR);
What the hell? :shock:
I didn't think this code would compile much less work. How the heck could you have possibly figure out using txtCR using the same syntax as an array without declaring the variable as an array?
Are you Navision dressed up as a human or something?Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
nice to see that even some of you veteran posters here can learn a few new things0
-
Alex Chow wrote:kriki wrote:Try this:
txtCR text:30txtCR := 'X'; txtCR[1] := 13; txtTheText := DELCHR(txtTheText,'=',txtCR);
What the hell? :shock:
I didn't think this code would compile much less work. How the heck could you have possibly figure out using txtCR using the same syntax as an array without declaring the variable as an array?
Are you Navision dressed up as a human or something?
Just kidding
I wondered at a certain point about texts. A string (or text) is an array of char, so I just tried the array-logic on it.
The initialization is needed to define the length of the string, otherwise it will be garbage.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Bravo! =D> You're the man.nice to see that even some of you veteran posters here can learn a few new things
Yes, learning something new and be amazed by it is one of the pleasures of life.Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
The solution still saves the day for some of us!! =D>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