Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: IXMLHTTPRequest.Send and Shift-JIS

From: Greg Lovern <gregl@-----.--->
To: NULL
Date: 5/1/2008 10:10:00 AM
On Apr 30, 4:28 am, Martin Honnen <mahotr...@yahoo.de> wrote:
> Greg Lovern wrote:
> > strShiftJIS = StrConv(sText, vbFromUnicode, LOCALE_ID_SHIFT_JIS)
> > So the steps are:
> >  -- Save file from Excel as Unicode.
> >  -- Open file with FileSystemObject as Unicode.
> >  -- Convert text from Unicode toShift-JIS.
> >  -- IXMLHTTPRequest.Send the text asShift-JIS, to a server that
> > requiresShift-JIS.
>
> > Any suggestions on what I'm doing wrong?
>
> Have you checked whether the result of the StrConv() call does the
> proper encoding?
>
> --
>
>         Martin Honnen --- MVPXML
>        http://JavaScript.FAQTs.com/

We've tried but we don't know of a good way to do that, because with
the tools we have for either saving the text to a file or displaying
it, we're not sure if the character encoding is being changed.

I've tried:
 -- displaying the text in the Immediate Pane of Excel's VBA Editor.
 -- entering the text in an Excel worksheet cell.
 -- saving to a file with fso and viewing in Notepad.
 -- saving to a file with Write# and viewing in Notepad.
 -- saving to a file with Win32 API functions CreateFile, WriteFile,
and CloseHandle and viewing in Notepad.

Some of these resulted in the wrong Japanese characters, others
resulted in Japanese characters being converted to question marks.
None of them resulted in the correct Japanese characters.


Thanks,

Greg


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent