The Mozilla
Organization
Our Mission
Who We Are
Getting Involved
Community
Editorials
What's New
Projects
Module Owners
Blue Sky
New Layout
Mail/News
Ports
Other
Source Code
Getting It
Documentation
License Terms
Bugs
Search
Feedback
DevEdge Online


PUBLIC UNICVTAPI unsigned char* INTL_UCS2ToUTF8 ( const uint16 *ucs2p, int32 num_chars )

Convert text from UCS-2 to UTF-8 encoding

Documentation

Convert text from UCS-2 to UTF-8 encoding. UCS-2 is the abbreviation for the two byte form of Unicode. UTF-8 is a transformation encoding for Unicode. For more information about UTF-8 look at RFC 2279 in ftp://ds.internic.net/rfc/rfc2279.txt . For more information about UCS-2, look at http://www.unicode.org.
Returns:
NULL terminated UTF-8 string or NULL. The caller should free it by calling XP_FREE when it is no longer needed.
Parameters:
ucs2p - Specifies the UCS-2 text buffer
num_chars - Specifies the length of ucs2p, in UCS-2 units not bytes
See Also:
INTL_UTF8ToUCS2

alphabetic index hierarchy of classes


Copyright © 1998 Netscape Communications Corporation

generated by doc++



Copyright © 1998 Netscape Communications Corporation.