none
SAPBinding - Encoding problems RRS feed

  • Question

  •  

    We are using SAPBinding with the WCF Custom adapter, and we’re receiving the messages with, what I assume is the wrong encoding. I believe the original message was using the 1252 (western European) encoding, but the adapter reads it as if it was utf-8. This causes any Swedish characters to look corrupt.

     

    Is there any way around this? Can I configure the adapter to read a specific charset? Looking at the generated schema, it says utf-16…

     

    //Mikael


    wmmihaa
    Thursday, December 11, 2008 1:08 PM

All replies

  • Two quick questions
    1)  What is the server version you are using (Unicode/Non-unicode)?
    2) What is the language you are passing in the connection string?


    Abhinav
    Thursday, December 11, 2008 1:25 PM
  • Thanks for the quick reply.

    1)  What is the server version you are using (Unicode/Non-unicode)?
    A: Don't really understand what you mean... :(


    2) What is the language you are passing in the connection string?
    A: LANG=EN so I suppose english...

    BTW, the codepage set in the schema was 1252, I set it to 65001 (utf-8), but it ended up with teh same result.


    wmmihaa
    Thursday, December 11, 2008 2:36 PM
  • If you are refering to the input message which you pass to the adapter, and which the adapter then attempts to send to SAP - can you try this hotfix and see if it helps?
    http://support.microsoft.com/kb/942612
    Thursday, December 11, 2008 6:16 PM
  • No, it's on the receive port.
    //Mikael
    wmmihaa
    Thursday, December 11, 2008 8:32 PM
  • What if you try changing the language in the connection string to whichever is appropriate for those non-English characters?
    Friday, December 12, 2008 12:16 AM