Re: [Audacity-devel] non-ascii labels
A free multi-track audio editor and recorder
Brought to you by:
aosiniao
|
From: Dominic M. <do...@au...> - 2006-08-22 06:18:36
|
On Aug 21, 2006, at 1:55 PM, Leland wrote: >> After rereading what I just wrote, it occured to me that I am >> assuming that you are using an xml library to do the xml >> parsing. But maybe Audacity does it's own (minimal) xml >> parsing and doesn't understand encodings? >> > Yes, we are using expat and it only support a few encodings. The > ones we'd > use are UTF-8 and/or UTF-16. I think I understand better now. Expat works best with utf-8, but we're trying to write a local encoding to the file. Perhaps the solution would be to use the standard wx routines to convert from [whatever the local encoding is] to utf-8 when writing labels, and from utf-8 back to [the local encoding] when reading them. Labels are one of the few areas where this matters, so at least for now we don't have to worry about doing this all over the code. - Dominic |