Home page logo
/

wireshark logo Wireshark mailing list archives

?????? how to convert to f ile encode from utf-8 toASCII?
From: "??????????" <237825552 () qq com>
Date: Thu, 27 Mar 2014 16:15:19 +0800

the file inside wireshark is too much,if i modified it one by one ,it is a huge project.




------------------ ???????? ------------------
??????: "Guy Harris";<guy () alum mit edu>;
????????: 2014??3??27??(??????) ????4:02
??????: "Developer support list for Wireshark"<wireshark-dev () wireshark org>; 

????: Re: [Wireshark-dev] how to convert to file encode from utf-8 toASCII?




On Mar 27, 2014, at 12:22 AM, "??????????" <237825552 () qq com> wrote:

In the readme.developer,it say that the developer should convert the source file encode into ASCII,but when i extract 
the compress file ,it's default file encode is utf-8,what should i do ?

Find all the non-ASCII characters and either convert them to ASCII (for example, converting non-breaking spaces to 
ordinary ASCII space characters) or remove them (which means that comments, for example, have to be in English - 
sorry!).

If you want to contribute your dissector to Wireshark, you must do this.  And, if you want to contribute your dissector 
to Wireshark, having the comments be in English is a Good Idea, because, for any language *other* than English, there's 
probably at least one Wireshark core developer who won't understand that language, no matter what that language is - 
but I suspect all the core developers understand English enough to be able to read the comments.

If, however, you'll only be using your dissector internally, non-English comments are OK, *as long as whatever compiler 
you're using doesn't have a problem with them*.  I suspect compilers for non-Windows OSes will be OK with non-English 
comments no matter what the file encoding is, but some Windows compilers may get upset if they see byte sequences that 
are not valid in your code page, and, unless you're using code page 65001, UTF-8 sequences for non-ASCII characters 
might be considered invalid.
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe

  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]