Hi, I have a question that may be a litte bit off topic, but may be not, i.e. I would expect there is some XPCOM component doing what I need.
I have implemented a pair ContentListener / StreamListener to process some special content type. I was guided by the code of nsNSSComponent, i.e. the StreamListener reads raw bytes and copies them to a char* buffer. My problem is, that the server sends UTF-16 encoded characters. If I read them as a stream of raw bytes, then the buffer does not contain the proper data. In fact, in every word high and low order Byte seem to be reversed. Did I make a mistake somewhere or do I really have to swap the bytes? If yes, is there a component (or function) offering this conversion as a service? Thanks in advance, -Andreas _______________________________________________ dev-tech-xpcom mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-xpcom
