David N Bertoni/Cambridge/IBM wrote:

Hi Andrei,

(...)


You are transcoding characters to the local code page, using
XMLString::transcode() (I'm assuming that's what XML::getTextContext()
does).  Unfortunately, there is no way to tell if those characters can be
represented in the local code page.  I suspect they cannot, so the
transcoder is failing.  One problem with local code page transcoding is
it's often difficult to tell if something fails, because the system
functions do not return an error code.  Instead, they just stop transcoding
when they reach the first character they cannot represent.

In general, you cannot trust that the machine on which your program
executes can encode any particular Unicode character in a char, so it's
best not to do any transcoding.  If you want to verify the values of DOM
text nodes, you should serialize the document and view it in a text viewer
which is capable of displaying that particular encoding.

Dave


Hi Dave and all the others which can/want to help me (Sorry for my ... chaotic english ;-).
Ok, PC don't support charset.
What do I have to make? To use XMLTranscoder? However, how to find "automatically" the charset of strings? Which size of block? etc.
Thank you for your answers


--
Andreļ V. FOMITCHEV               [Quand faut-il arrźter l'informatique]
Software R&D Engineer    [Lorsque, dans un kilo, on trouve 1024 grammes]
Odixion, FRANCE




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to