2025-02-11 00:03:36 +00:00

21 lines
480 B
C

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