Joost Verburg wrote:
Georg Baum wrote:
For ucs4 -> utf8 we would have to use a result string with a length of 6 times the input length, with the average length close to the inpurt length if we want to be able to convert everything. That is probably too much to be efficient.

ucs4 uses 4 bytes per character and utf8 1-4 bytes. I don't understand where you get this number from.

utf8 can use up to 6 characters. 4 bytes would not have been enough to store 4 bytes of data plus the protocol necessary to decode utf8.

Abdel.

Reply via email to