I found that converting between TDesC8 and TDesC16 is kind of troublesome in most cases. When dealing with those socket or file related classes that manipulate TDesC8 buffer and display it using the UI classes which in most cases only take TDesC16 data, extra conversion and buffers need to be constructed. Same for comparing data between TDesC8 and TDesC16. This will definitely cause some overhead on memory and performance.

Is there a better way to use socket or file classes with UI classes? Any suggestion?