Iterating Through Available Transcoders

Use ICharacterSetIterator to iterate through the character sets for which transcoders are available. The iterator returns an IText object containing the name of the character set supported by each transcoder.

To use ICharacterSetIterator:

  1. Instantiate an ICharacterSetIterator.
  2. Use operator++ to move forward through the list of transcoders.

For example, this code shows how to search through the character sets for which transcoders are available to determine whether a transcoder for the UTF-8 character set is provided:

IText greek("ISO-8859-7");

ICharacterSetIterator iter;



while (iter && *iter != greek)

	iter++;



if (iter) {

	// If the iterator was found, construct it

	ITranscoder* transcoder = 
ITranscoder::createTranscoder(iter*);

}


Transcoding Classes
Transcoder Names