Wireshark mailing list archives
Re: non-ASCII characters
From: Guy Harris <guy () alum mit edu>
Date: Wed, 19 Jan 2011 12:21:07 -0800
On Jan 19, 2011, at 12:14 PM, Andreas wrote:
I write a dissector for a protocol that transport measurement values for pressure and temperature and so on. I would like to display the values with proto_tree_add_float() with the correct unit. But the °C symbol as well as µA is not displayed correctly. Is there a way display this character set specific characters in Wireshark? How should I encode these characters that the GTK UI displays the nice "°C" so that I can avoid "degrees centigrade"?
Try encoding them in UTF-8 (*NOT* UTF-16/UCS-2!); that might work. Of course, getting the Windows C compiler to like it is another matter. You might have to explicitly encode it, e.g. "\302\260C" for "°C". ___________________________________________________________________________ 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
Current thread:
- non-ASCII characters Andreas (Jan 19)
- Re: non-ASCII characters Guy Harris (Jan 19)
- Re: non-ASCII characters Andreas (Jan 20)
- Re: non-ASCII characters Gerald Combs (Jan 20)
- Re: non-ASCII characters Andreas (Jan 20)
- Re: non-ASCII characters Guy Harris (Jan 19)