Closed xpol closed 8 years ago
Its due to reading of shared strings. I can make a PR to fix it.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="2" uniqueCount="2">
<si>
<r>
<rPr><sz val="10"/><color rgb="FF000000"/><rFont val="Arial"/><family val="2"/><charset val="1"/></rPr>
<t>abc</t>
</r>
<r>
<rPr><sz val="10"/><color rgb="FF000000"/><rFont val="微软雅黑"/><family val="2"/><charset val="134"/></rPr>
<t>中文</t>
</r>
</si>
<si>
<r>
<rPr><sz val="10"/><rFont val="微软雅黑"/><family val="2"/><charset val="134"/></rPr>
<t>汉字</t>
</r>
<r>
<rPr><sz val="10"/><rFont val="Arial"/><family val="2"/><charset val="134"/></rPr>
<t>def</t>
</r>
</si>
</sst>
This is great. Thanks for your contribution xpol. My support for non-ascii characters could certainly use some work. I'm planning to commit some improvements to string handling soon. I'll merge your work in at that time!
I've implemented text runs and loading/saving workbooks containing cells with character-level formatting looks to be working. Going to call this closed.
I have a LibreOffice edited xlsx having cells with both English and Chinese characters.
English characters are have
Arial
font. Chinese characters are haveMicrosoft Yahei
font.When I print the cell using follow code, I only get the first part of the full cell.
As in follow image:
abc中文
in cellA1
,abc
hasArial
font and中文
hasMicrosoft Yahei
font, I only getabc
print out.汉字def
in cellA2
,汉字
hasMicrosoft Yahei
font and中文
hasArial
font, I only get汉字
print out.Attachment: bug.xlsx.