OMNeT++ Community Site
  Welcome to OMNeT++ Community Site Monday, October 13 2008 

Mailing list archive (omnetpp-l at omnetpp.org)


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [omnetpp] utf8 coding in .ned files



Hi,

If you use UTF-8 NED files without the BOM mark (EF BB BF), it should work
already in 3.x -- provided that international chars are only used within
comments. Identifiers (module names, parameter and gate names, etc) should
be in ASCII. 

I just committed a change into 4.0 to accept the BOM. I'd still restrict
identifiers to ASCII (a-zA-Z0-9_) as it is in C++. 

The 4.0 IDE already supports UTF-8 (displays international chars correctly,
etc)

Regards,
Andras


> -----Original Message-----
> From: omnetpp-l-bounces at xxx [mailto:omnetpp-l-bounces at xxx]
> On Behalf Of Chun-Hung Chen
> Sent: Monday, July 14, 2008 8:48 AM
> To: omnetpp-l at xxx
> Subject: [omnetpp] utf8 coding in .ned files
> 
> Hi,
> 
> It may be a problem or needed to be solved in the next version of OMNeT++.
> I
> have found that utf8 coding is not accepted in ned parsing and it will
> generate parsing error if your ned file is encoded in utf8 instead of
> ANSI.
> Since I occasually uses utf8 in plain text file (to accept different
> languages properly displayed), it would be help if ned parsing can accept
> ansi and utf8.
> 
> Regards,
> Chun-Hung
> _______________________________________________
> OMNeT++ Mailing List
> options: http://lists.omnetpp.org/mailman/listinfo/omnetpp-l
> archive: http://www.omnetpp.org/listarchive/index.php

_______________________________________________
OMNeT++ Mailing List
options: http://lists.omnetpp.org/mailman/listinfo/omnetpp-l
archive: http://www.omnetpp.org/listarchive/index.php

Home | Main Index | Thread Index


 Copyright © 2008 OMNeT++ Community Site
 All trademarks and copyrights on this page are owned by their respective owners.
Powered By GeekLog v1.3.7sr1 
Page created in 0.04 seconds