Page 1 of 1

Generating C# code has 0xEF 0xBB at the beginning

PostPosted: Wed Apr 08, 2009 8:05 am
by Sam Carleton
I am evaluating the C# code generation peice of MagicDraw v16.0. Every
time I generate C# code, all the files start with the bytes EFh BBh, if
memory services this is some way of denoting it is or is not Unicode.
How does one turn this off?

Sam (user ID #493153)

Re: Generating C# code has 0xEF 0xBB at the beginning

PostPosted: Thu Apr 09, 2009 6:30 am
by Thanadee U.
Dear Sam,

Could you give me the MagicDraw save file(.mdzip and also .mdr) for
generating your attached code? And please give me the information of
your environment too. We will investigate the problem as soon as possible.

Best regards,

Arnon L.
--
Customer Support Engineer
No Magic Asia Ltd.
(Asian Software Development Center)
719 KPN Tower, 22nd Floor, Huaykwang,
Bangkapi, Bangkok 10310 Thailand
Phone: + 66 2717-0250
Fax: + 662 717-0251
Email: support
<mailbox:///D%7C/E/Back_C_for_Pipat/Thunderbird/Profiles/xmt04imq.default/Mail/mail.nomagicasia.com/Inbox?number=-2046093092>

nntp://news.nomagic.com/nomagic.products.magicdrawuml.codeengineering
wrote:
> I am evaluating the C# code generation peice of MagicDraw v16.0.
> Every time I generate C# code, all the files start with the bytes EFh
> BBh, if memory services this is some way of denoting it is or is not
> Unicode. How does one turn this off?
>
> Sam (user ID #493153)
>
>


Re: Generating C# code has 0xEF 0xBB at the beginning

PostPosted: Tue Jul 22, 2014 11:33 am
by mvinca-tsi
I am also having this issue. Was there any resolution?

Re: Generating C# code has 0xEF 0xBB at the beginning

PostPosted: Wed Jul 23, 2014 4:37 am
by thanadee
Hi,

Can you please open MagicDraw and change the default encoding in "Options->Project->Code Engineering->Default Encoding" to something else such as "US-ASCII" and then generate again?

Best regards,

Thanadee U.
Support Engineer