Vasiliy Stepanov wrote:
I have done this task in the same way. The mozilla strings guide advises use only nsAString. The nsAString hasn’t got method for conversion. What should I do? I have to use my own unsafe code.
If you use MOZILLA_INTERNAL_API you can use NS_ConvertUTF16toUTF8, otherwise you can use NS_UTF16ToCString like someone else already suggested.
_______________________________________________ Mozilla-xpcom mailing list [email protected] http://mail.mozilla.org/listinfo/mozilla-xpcom
