Just to add to Dmitry's comment -- you will not be able to use
TranscodeToLocalCodePage()/TranscodeFromLocalCodePage(), unless your local
code page supports the euc-kr characters you are using.

You'll need to rebuild Xerces with support for the ICU, then use a
transcoder for that encoding to transcode from euc-kr to UTF-16, and from
UTF-16 to euc-kr.  The sample applications all assume XPath queries will be
in the local code page, which is why they use TranscodeToLocalCodePage()
and TranscodeFromLocalCodePage().

Dave



|---------+--------------------------->
|         |           Dmitry Hayes    |
|         |           <[EMAIL PROTECTED]|
|         |           com>            |
|         |                           |
|         |           06/16/2003 11:57|
|         |           AM              |
|         |           Please respond  |
|         |           to xalan-dev    |
|---------+--------------------------->
  
>---------------------------------------------------------------------------------------------------------------|
  |                                                                                    
                           |
  |        To:      [EMAIL PROTECTED]                                                  
                    |
  |        cc:      (bcc: David N Bertoni/Cambridge/IBM)                               
                           |
  |        Subject: Re: Q : Encoding problem in XPathWrapper (in samples)              
                           |
  
>---------------------------------------------------------------------------------------------------------------|







Hi Kim!
Generally speaking, Xalan uses Xerces's services for transcoding.
I don't think that "euc-kr" is supported by Xerces ( only ASCII, UTF-8,
UTF-16 and so on)
Probably you need Xerces with ICU(or Iconv) enabled  .


 Dmitry







                      Kim Jeong Yeon

                      <[EMAIL PROTECTED]        To:
[EMAIL PROTECTED]
                      kr>                      cc:

                                               Subject:  Q : Encoding
problem in XPathWrapper (in samples)
                      16.06.2003 04:15

                      Please respond to

                      xalan-dev







hi.
I have question about encoding problem(in XPath Processing).

I did compile XPathWrapper sample successfully
in Xalan-C++(~xml-xalan/c/samples/XPathWrapper/).

also, It works no problem on sample xml file.
But, I tried another xml file that encoded "euc-kr", It didn't work. :-(
(stop in print or parsing)

XPathWrapper sample used
TranscodeFromLocalCodePage()/TranscodeToLocalCodePage() function for
transcode.
For support another encoding, have another way?

How can I solve this encoding problem?
(XSLT(Xalan) works no problem about encoding)


I build Xalan-C++ 1.5 with Xerces-C++ 2.2.0 and ICU 2.4.
My system is...
  Redhat Linux 8.0
  gcc 3.2

Thanks Your Reading. :-)






Reply via email to