From: Colin P. A. <co...@co...> - 2007-07-26 17:32:03
|
>>>>> "Emmanuel" == Emmanuel Stapf [ES] <Emmanuel> writes: >> This is impossible. You cannot in general determine what the >> encoding of a string is. Emmanuel> Either you know it or you don't. The creator of a UC_STRING must know it. So he or she can call the appropriate creation routine. Emmanuel> If you do not know Emmanuel> then the smart feature should try the various possible Emmanuel> heuristics to see which one works. If none seems to work Emmanuel> then you simply fail the conversion. How do you fail? Raise an exception in the creation routine? More importantly, what if more than one work? This is quite possible. And STRING_32, as you have implemented it, is UTF-32. So it is not independent of encodings - it can't be. -- Colin Adams Preston Lancashire |