本文转自:https://example-code.com/sql/charset_convert_file_from_utf8_to_ansi.asp

 

CREATE PROCEDURE ChilkatSample
AS
BEGIN
    int
    4000)
    int
    OUT
    0
    BEGIN
        'Failed to create ActiveX component'
        RETURN
    END

    int
    'Anything for 30-day trial.'
    STR(@success) <> 1
      BEGIN
        OUT
        PRINT @sTmp0
        EXEC @hr = sp_OADestroy @charset
        RETURN
      END

    'utf-8'
    'ANSI'

    --  encoding for the computer.  In Poland, for example, it would be the single-byte-per-char
    --  used to represnt Eastern European language chars, which is Windows-1250.
    'Windows-1252'

    'qa_output/cafeAnsi.txt'
    STR(@success) <> 1
      BEGIN
        OUT
        PRINT @sTmp0
        EXEC @hr = sp_OADestroy @charset
        RETURN
      END


    PRINT 'Success.'

    EXEC @hr = sp_OADestroy @charset


END
GO

相关文章:

  • 2021-11-17
  • 2022-03-09
  • 2022-12-23
  • 2021-11-17
  • 2021-07-30
  • 2021-12-27
  • 2021-12-13
猜你喜欢
  • 2021-08-20
  • 2022-02-14
  • 2021-10-11
  • 2021-12-31
  • 2022-12-23
  • 2022-01-05
  • 2022-12-23
相关资源
相似解决方案