Alexey Kakunin wrote:
Thank you!
Yes, I found quite good quidline at http://www.mozilla.org/projects/xpcom/string-guide.html


But, as I realized, not all XPCOM services supports Unicode. For example IDirectoryService, IFile... has string as parameters.
hm, interesting why?

The directory service uses strings as ascii programming keys (like an enumeration). There is no need to support a unicode repertoire.


nsIFile is very careful about it's unicode+native charset API. Each function has a unicode version (GetPath) and a native-charset version (GetNativePath).

--BDS
_______________________________________________
Mozilla-xpcom mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to