On Jul 6, 2012, at 8:49 AM, Brice Goglin wrote:
> I am looking at filtering special characters out of strings to make XML
> export/reimport safer when the BIOS contains ugly DMI infos or when the
> user sets crazy custom object info strings.
> We don't want to waste time with encoding, supporting ascii is enough in
> the vast majority of cases. Others invalid chars will be removed from
> the XML-exported strings. But libxml doesn't like most characters
> between 0 and 31. I could just use isprint() to check every character
> before export and only keep those between 32 and 127. But what about \n,
> \t, \r, \f which are before ? Do we want to allow them?
I don't have a strong opinion here. Does libxml allow them?
For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/