This question is directly related to my previous one about "XMLCh & wchar_t
conversion on multiple platforms"
My question is, how do you use the ICUTranscoder and IconvTranscoder? I
can't seem to figure out how to get them to work. So lots of questions
below related to the specific transcoders and their usage.
IconvTranscoder: (Is this even valid? Or should it really be
IConv400Transcoder?)
1. Constructor takes an XMLCh that's suppose to have the encoding name.
How do I determine what encoding name to use?
2. Constructor also takes an int that's suppose to be blocksize. Is this
the sizeof(wchar_t)? If not what should it be for the different encodings?
3. Both the transcodeOne and transcodeXML functions take an XMLByte*.
Looking through the headers it looks like an XMLByte is defined as a char.
How can I give these functions a wchar_t and get a XMLCh back without
loosing the Unicode first by converting to char*? I'm probably just not
making a connection on this one.
4. IconvTranscoder doesn't define the transcodeTo & transcodeFrom that are
found in its base class so this doesn't seem like a valid transcoder.
Should it be the I really should be using Iconv400Transcoder (or 390)?
5. How do you convert from an XMLCh back to wchar_t with the transcoders?
(I know its the transcodeFrom function, but that only gives an XMLByte.) How
do you get from the XMLByte to the wchar_t that you really want?
ICUTranscoder:
1. Same question as IconvTranscoder #1
2. What is the UConverter and where is it defined? (Tried looking and cant
find its definition)
3. Same question as IconvTranscoder #2
4. Same question as IconvTranscoder #3
5. Same question as IconvTranscoder #5
In all likelihood I will be using the IconvTranscoder assuming that is the
way this should be done.
Help greatly appreciated. Thank You,
Mark A Russell
NextGen Software Engineer
CSG Systems, Inc.
E-Mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]