2014-06-08 17:40:59 +01:00

21 lines
475 B
C

/*
* A simple Unicode UTF-8 example using libxlsxwriter.
*
* Note: The source file must be UTF-8 encoded.
*
* Copyright 2014, John McNamara, jmcnamara@cpan.org
*
*/
#include "xlsxwriter.h"
int main() {
lxw_workbook *workbook = new_workbook("utf8.xlsx");
lxw_worksheet *worksheet = workbook_add_worksheet(workbook, NULL);
worksheet_write_string(worksheet, 2, 1, "Это фраза на русском!", NULL);
return workbook_close(workbook);
}