Skip to main content

Mozilla

  • About
  • Foundation
  • Contribute
  • Community
  • Developers
  • Projects

  • Roadmap
  • Projects
  • Coding
    • Module Owners
    • Hacking
    • Get the Source
    • Build It
  • Testing
    • Releases
    • Nightly Builds
    • Report A Problem
  • Tools
    • Bugzilla
    • Tinderbox
    • Bonsai
    • MXR
  • FAQs

PUBLIC INTL_Encoding_ID INTL_UnicodeToEncodingStr ( INTL_Unicode* ustr, uint32 ustrlen, unsigned char* dest, uint32 destbuflen )

Convert Unicode to text in one encoding by trial and error

Documentation

Convert Unicode to text in one encoding by trial and error. This routine tries to convert the given Unicode string into text of one non-Unicode encoding. This is a trial and error function which may be slow in "THE WORST CASE". However, it does it's best in the best case and average case.
Returns:
Encoding of the converted text
Parameters:
ustr - Specifies the buffer containing UCS-2 data
ustrlen - Specifies the valid length of ustr in UCS-2 units not bytes
dest - Specifies the buffer for the converted text and returns the converted text

alphabetic index hierarchy of classes


Copyright © 1998 Netscape Communications Corporation

generated by doc++


  • Support Options
  • Security Center
  • Privacy Policy
  • Contact Us

International Affiliates: Mozilla Europe - Mozilla Japan - Mozilla China

Portions of this content are © 1998–2008 by individual mozilla.org contributors
Content available under a Creative Commons license

Last modified April 16, 1998 Document History Edit this Page (or via CVS)