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

Report
All responses (
Answers (