diff --git a/docs/README.md b/docs/README.md index 4c6ff86..c1feee8 100644 --- a/docs/README.md +++ b/docs/README.md @@ -2,6 +2,9 @@ ## Release Notes +### 0.10.3 +- [Bug] Fix Query SharedStrings control character not encoding (issue [Issue #149](https://github.com/shps951023/MiniExcel/issues/149)) + ### 0.10.2 - [Bug] Fix SharedStrings get wrong index (issue [#153](https://github.com/shps951023/MiniExcel/issues/153)) - [Bug] SaveAs support control character encoding (issue [Issue #149](https://github.com/shps951023/MiniExcel/issues/149)) diff --git a/src/MiniExcel/MiniExcelLibs.csproj b/src/MiniExcel/MiniExcelLibs.csproj index 5711e4a..4e63540 100644 --- a/src/MiniExcel/MiniExcelLibs.csproj +++ b/src/MiniExcel/MiniExcelLibs.csproj @@ -19,7 +19,7 @@ https://github.com/shps951023/MiniExcel https://raw.githubusercontent.com/shps951023/ImageHosting/master/img/2019-01-17.13.18.32-image.png net461;netstandard2.0;net5.0 - 0.10.2 + 0.10.3 Please Check [Release Notes](https://github.com/shps951023/MiniExcel/tree/master/docs) Github diff --git a/tests/MiniExcelTests/MiniExcelIssueTests.cs b/tests/MiniExcelTests/MiniExcelIssueTests.cs index 0c687dc..e77ec43 100644 --- a/tests/MiniExcelTests/MiniExcelIssueTests.cs +++ b/tests/MiniExcelTests/MiniExcelIssueTests.cs @@ -56,6 +56,26 @@ namespace MiniExcelLibs.Tests Assert.Equal(chars[i], rows[i]); } } + + { + string path = Path.Combine(Path.GetTempPath(), $"{Guid.NewGuid()}.xlsx"); + var input = chars.Select(s => new { Test = s.ToString() }); + MiniExcel.SaveAs(path, input); + + var rows = MiniExcel.Query(path).Select(s => (string)s.Test).ToList(); + for (int i = 0; i < chars.Length; i++) + { + output.WriteLine($"{i} , {chars[i]} , {rows[i]}"); + if (i == 13 || i == 9 || i == 10) + continue; + Assert.Equal(chars[i], rows[i]); + } + } + } + + public class Issue149VO + { + public string Test { get; set; } } ///