web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

Single Byte & Double Byte Characters in SJIS Japanese

(0) ShareShare
ReportReport
Posted on by 3,965

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

I have the same question (0)
  • Suggested answer
    Marco Mels Profile Picture
    on at
    RE: Single Byte & Double Byte Characters in SJIS Japanese

    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.

    www.yammer.com/dynamicsnavdev

    dynamicsuser.net/.../developers

    I will open this up to the community in case they have something to add.

    Thanks.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,725 Super User 2025 Season 2

#2
Sumit Singh Profile Picture

Sumit Singh 2,610

#3
Jeffrey Bulanadi Profile Picture

Jeffrey Bulanadi 2,221

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans