[GH-ISSUE #251] Inserting GBK characters data causes file corruption. #200

Closed
opened 2026-05-05 11:54:15 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @ZChidori on GitHub (Nov 6, 2019).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/251

Originally assigned to: @jmcnamara on GitHub.

Originally created by @ZChidori on GitHub (Nov 6, 2019). Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/251 Originally assigned to: @jmcnamara on GitHub.
gitea-mirror 2026-05-05 11:54:15 -06:00
Author
Owner

@jmcnamara commented on GitHub (Nov 6, 2019):

Excel only supports UTF8. You will need to convert your characters to that encoding.

See also the worksheet_write_string() docs:

https://libxlsxwriter.github.io/worksheet_8h.html#ac208046e7a6d12cc87982422efa41b31

Let me know if that works for you.

<!-- gh-comment-id:550197133 --> @jmcnamara commented on GitHub (Nov 6, 2019): Excel only supports UTF8. You will need to convert your characters to that encoding. See also the `worksheet_write_string()` docs: https://libxlsxwriter.github.io/worksheet_8h.html#ac208046e7a6d12cc87982422efa41b31 Let me know if that works for you.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/libxlsxwriter#200
No description provided.