本文转自: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