Ethereal-dev: Re: [Ethereal-dev] Unicode strings ...

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxx>
Date: Sun, 12 Aug 2001 17:19:29 -0700
On Sun, Aug 12, 2001 at 05:12:34PM -0700, Guy Harris wrote:
> My inclination would be to go with UTF-8 internally,

...although that would require either that "proto_tree_add_string()" and
so on take an argument specifying the character set to be used or that
some indication of the character set be associated with the field.

The latter has the disadvantage that not all occurrences of the field
would necessarily have the same character set, so I'd be inclined to add
a character-set argument.

"proto_tree_add_item()" might also have to have that argument added (the
byte-order argument couldn't, I think, be used, as if the character set
in the packet is UCS-2, you'd have to specify whether it's big-endian or
little-endian UCS-2).