Hi All,
I have a problem where I have to export the string of byte or double-byte from Business Central using Streams.
The problem is if I use UTF8 or UTF16 encoding, the character is identified as single-byte character but I cannot control the length using bytes.
This was possible in NAV2009 using FILE.
I'm looking for a possible way to export a string with the combination of single & double bytes with appropriate lengths.
For Eg:
If I pass CustomerName with ByteCount as 30 with 20 single bytes and 5 double-byte characters.
The string will contain total 30 bytes with 20 single bytes and 5 double bytes and not 30 characters counting the double bytes characters as single bytes.
I was hoping for a standard Codeunit or Function provided by Microsoft to help with this kinda parsing issue.
NOTE: There is SJIS encoding that handles this problem automatically, however, this is not supported by D365 BC.
Kindly advise!
Thanks,
Olister
Hello,
We currently do not have dedicated Dev support via the Dynamics 365 Business Central forums, but I wanted to provide you some additional resources to assist. If you need assistance with debugging or coding I would recommend discussing this on one of our communities.
dynamicsuser.net/.../developers
I will open this up to the community in case they have something to add.
Thanks.
Sohail Ahmed
2,725
Super User 2025 Season 2
Sumit Singh
2,610
Jeffrey Bulanadi
2,221