mirror of
https://github.com/jmcnamara/libxlsxwriter
synced 2025-03-28 21:13:14 +00:00
21 lines
480 B
C
21 lines
480 B
C
/*
|
|
* A simple Unicode UTF-8 example using libxlsxwriter.
|
|
*
|
|
* Note: The source file must be UTF-8 encoded.
|
|
*
|
|
* Copyright 2014-2018, 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);
|
|
}
|