On quarta-feira, 31 de julho de 2013 20:04:33, Richard Moore wrote: > On 31 July 2013 19:54, Thiago Macieira <thiago.macie...@intel.com> wrote: > > On quarta-feira, 31 de julho de 2013 18:21:42, Scott Aron Bloom wrote: > >> As to the size of the codec.. Is there a way to tell the size? > > > > Hmm... You can feed it an 'a' and see how many bytes come out. Actually, > > verify that the output is exactly one byte 0x61. That way, you'll also > > prevent someone from setting EBCDIC or other funky 8-bit codecs. > > Wouldn't that miss any codecs that are variable length?
Variable length multi-byte is fine -- think UTF-8. The important thing is actually that the codec be ASCII-compatible. Preferably, it should be a superset of ASCII (like the ISO-8859 family, the Windows 1250-1260 codepages, most old DOS codepages), but in practice codecs like SJIS are also acceptable. Wide character codecs aren't, ASCII-incompatible codecs neither. Try explaining to a Japanese user that the path separator on Windows isn't ¥. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest