From: Emmanuel S. [ES] <ma...@ei...> - 2007-07-26 16:01:34
|
> The Unicode Consortium decide these matters, not us. But I've heard that for text file, sometime one has to figure himself what encoding is used and usually you have plenty of choice (UTF-8, UTF-16 or whatever else there is). If I understand what you just did, your class assumes that you knew that you were handling a UTF-16 string. My feeling is that in such case you also know the variant being used. If I pass a UTF-16 without a BOM and you reject it I think that's too strong. I'll let you decide, just wanted to give you my input on what I think should not be part of UC_STRING but part of a separate class that does conversion to and from verious encodings. UC_STRING should be like STRING_32, i.e. immune of any encodings. Regards, Manu |