Re: [Audacity-devel] Preview buttons, etc.
A free multi-track audio editor and recorder
Brought to you by:
aosiniao
From: Dominic M. <do...@mi...> - 2003-06-11 07:47:36
|
Dave Fancella wrote: > Anyway, if you can make a list of characters that need to be escaped, I > could come up with codes pretty quickly. Actually you can encode anything using hexadecimal. That's what %20 is - 20 is the hex code for space (ASCII 32). So it would be easy to write a function that encodes EVERYTHING that way. Maybe that would be best - encode everything that way EXCEPT for a-z, A-Z, 0-9, and a few other characters that we're positive are safe. To avoid overencoding, what we really need is a list of the characters that are in the ASCII range 32 - 127 but have special meaning in XML and need to be escaped. < and > are examples of this. But if we can't find a definitive reference, I'll just go with that idea above. In C code: printf("%%%02X", ch); - Dominic |