TCL data conversion issue in Cloverleaf 5.8

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf TCL data conversion issue in Cloverleaf 5.8

  • Creator
    Topic
  • #53240
    Graham Hartley
    Participant

      I have an encoding issue now we have moved from Cloverleaf 5.3 to 5.8 in Windows that I am struggling to resolve.

      The problem is storing text which contains extended ASCII codes in an SQL Server database.  

      The following code demonstrates the issue:


      odbc sqlallochandle SQL_HANDLE_STMT $hdbcDW  hstmtDWRS
      set SQL “insert into OCMTEXTRESULTS (AgpSeqNo,Comment,OcmTransKey,ResultCode,SessionNumber,EURDate) values (’1′,’b
      [code]
      odbc sqlallochandle SQL_HANDLE_STMT $hdbcDW  hstmtDWRS
      set SQL “insert into OCMTEXTRESULTS (AgpSeqNo,Comment,OcmTransKey,ResultCode,SessionNumber,EURDate) values (’1′,’b

    Viewing 4 reply threads
    • Author
      Replies
      • #77016
        David Barr
        Participant

          You could try putting “encoding system identity” in your script before you call msgget or connect to your database. We had to do something similar when we upgraded to 5.8.

        • #77017
          Graham Hartley
          Participant

            Thanks for the response.  Given it a try and it still dosen’t work I am afraid

          • #77018
            James Cobane
            Participant

              Graham,

              If you are receiving the message on an inbound thread before processing through your proc, make sure you have the encoding on the thread set to Windows-1252.  If you leave it as the default ASCII, it will likely be skewed coming into your proc.  Likewise, if this is going outbound, you would want to configure the outbound thread with Windows-1252 encoding.

              Hope this helps.

              Jim Cobane

              Henry Ford Health

            • #77019
              Graham Hartley
              Participant

                Thanks James for your comments however the thread used to process the message already has its encoding set to windows-1252 therefore I don

              • #77020
                James Cobane
                Participant

                  If you haven’t already, you should open a case with Support.

                  Jim Cobane

                  Henry Ford Health System

              Viewing 4 reply threads
              • The forum ‘Cloverleaf’ is closed to new topics and replies.