I need some help and I hope one of you maybe got the answer or an idea which can lead me to a solution.
I am tasked with moving text from sales line description into “Record Link” (Table: 2000000068) (field Note, BLOB)
Which under normal circumstance is easy enough but the customer is Danish and need to insert special danish characters (æ ø å).
When I use a normal Note element (NAV 2015) It works like a charm, but when I do it by code it is failing. I have trying a lot of differing methods. But UFT, text conversion, and so one. I think I have tried every I can find by google, dynamics user, mibuso.
I tried to use .NET when I could not find any other solution in C/AL, but I cannot crack the encryption, when get the data out from SQL it is a binary like “AkV9WxMISS0uUUhMUzi8TOHwDoXDSwE=”( LINQ to SQL (binary Record_Link.Note)) ,does anybody have a way to turn it into a string so I can pass it into NAV again? Or as a byte array
That’s about the only time I don’t like being Danish! Despite Navision being Danish, then NAV really don’t like our three extra letters. Especially the Ø used to cause troubles.
But I can see that you’re using BigTexts. Have you tried using a stream instead? Here you are able to specify the TEXTENCODING directly.
Happy it works you, and thanks for sharing the code.
No matter how many times I work with Danish characters, then it remains a mystery to me why this have to be so complex. Even with the new TEXTENCODING functions, then I always have to change my code several times, before it works again in a new context. Especially when importing/export.