Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Control character encoding #149

Closed
shps951023 opened this issue Apr 4, 2021 · 7 comments
Closed

Support Control character encoding #149

shps951023 opened this issue Apr 4, 2021 · 7 comments

Comments

@shps951023
Copy link
Member

shps951023 commented Apr 4, 2021

image

@shps951023
Copy link
Member Author

shps951023 commented Apr 4, 2021

ClosedXml
image
image
image
image
image

@shps951023
Copy link
Member Author

shps951023 commented Apr 4, 2021

OpenXml SDK:
image

@shps951023 shps951023 reopened this Apr 4, 2021
@shps951023
Copy link
Member Author

ClosedXml
image
image

@shps951023
Copy link
Member Author

OpenXml SDK
image

@shps951023
Copy link
Member Author

LibreOffice

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="1" uniqueCount="1">
    <si>
        <t xml:space="preserve">  &#10;_x0001_ &#10;_x0002_ &#10;_x0003_ &#10;_x0004_ &#10;_x0005_ &#10;_x0006_ &#10;_x0007_ &#10;_x0008_ &#10;&#9; &#10;&#10; &#10;_x000b_ &#10;_x000c_ &#10;&#10; &#10;_x000e_ &#10;_x000f_ &#10;_x0010_ &#10;_x0011_ &#10;_x0012_ &#10;_x0013_ &#10;_x0014_ &#10;_x0015_ &#10;_x0016_ &#10;_x0017_ &#10;_x0018_ &#10;_x0019_ &#10;_x001a_ &#10;_x001b_ &#10;_x001c_ &#10;_x001d_ &#10;_x001e_ &#10;_x001f_ &#10;&#10;</t>
    </si>
</sst>

image

@shps951023 shps951023 changed the title Remove Control character Support Control character encoding Apr 6, 2021
@shps951023
Copy link
Member Author

office 365

<?xml version="1.0" encoding="utf-8"?>
<x:worksheet xmlns:x="http://schemas.openxmlformats.org/spreadsheetml/2006/main">
    <dimension ref="A34"/>
    <x:sheetData>
        <x:row r="1">
            <x:c r="A1" t="str">
                <x:v>Test</x:v>
            </x:c>
        </x:row>
        <x:row r="2">
            <x:c r="A2" t="str">
                <x:v>_x0000_</x:v>
            </x:c>
        </x:row>
        <x:row r="3">
            <x:c r="A3" t="str">
                <x:v>_x0001_</x:v>
            </x:c>
        </x:row>
        <x:row r="4">
            <x:c r="A4" t="str">
                <x:v>_x0002_</x:v>
            </x:c>
        </x:row>
        <x:row r="5">
            <x:c r="A5" t="str">
                <x:v>_x0003_</x:v>
            </x:c>
        </x:row>
        <x:row r="6">
            <x:c r="A6" t="str">
                <x:v>_x0004_</x:v>
            </x:c>
        </x:row>
        <x:row r="7">
            <x:c r="A7" t="str">
                <x:v>_x0005_</x:v>
            </x:c>
        </x:row>
        <x:row r="8">
            <x:c r="A8" t="str">
                <x:v>_x0006_</x:v>
            </x:c>
        </x:row>
        <x:row r="9">
            <x:c r="A9" t="str">
                <x:v>_x0007_</x:v>
            </x:c>
        </x:row>
        <x:row r="10">
            <x:c r="A10" t="str">
                <x:v>_x0008_</x:v>
            </x:c>
        </x:row>
        <x:row r="11">
            <x:c r="A11" t="str">
                <x:v></x:v>
            </x:c>
        </x:row>
        <x:row r="12">
            <x:c r="A12" t="str">
                <x:v>
                </x:v>
            </x:c>
        </x:row>
        <x:row r="13">
            <x:c r="A13" t="str">
                <x:v>_x000B_</x:v>
            </x:c>
        </x:row>
        <x:row r="14">
            <x:c r="A14" t="str">
                <x:v>_x000C_</x:v>
            </x:c>
        </x:row>
        <x:row r="15">
            <x:c r="A15" t="str">
                <x:v>
                </x:v>
            </x:c>
        </x:row>
        <x:row r="16">
            <x:c r="A16" t="str">
                <x:v>_x000E_</x:v>
            </x:c>
        </x:row>
        <x:row r="17">
            <x:c r="A17" t="str">
                <x:v>_x000F_</x:v>
            </x:c>
        </x:row>
        <x:row r="18">
            <x:c r="A18" t="str">
                <x:v>_x0010_</x:v>
            </x:c>
        </x:row>
        <x:row r="19">
            <x:c r="A19" t="str">
                <x:v>_x0011_</x:v>
            </x:c>
        </x:row>
        <x:row r="20">
            <x:c r="A20" t="str">
                <x:v>_x0012_</x:v>
            </x:c>
        </x:row>
        <x:row r="21">
            <x:c r="A21" t="str">
                <x:v>_x0013_</x:v>
            </x:c>
        </x:row>
        <x:row r="22">
            <x:c r="A22" t="str">
                <x:v>_x0014_</x:v>
            </x:c>
        </x:row>
        <x:row r="23">
            <x:c r="A23" t="str">
                <x:v>_x0015_</x:v>
            </x:c>
        </x:row>
        <x:row r="24">
            <x:c r="A24" t="str">
                <x:v>_x0016_</x:v>
            </x:c>
        </x:row>
        <x:row r="25">
            <x:c r="A25" t="str">
                <x:v>_x0017_</x:v>
            </x:c>
        </x:row>
        <x:row r="26">
            <x:c r="A26" t="str">
                <x:v>_x0018_</x:v>
            </x:c>
        </x:row>
        <x:row r="27">
            <x:c r="A27" t="str">
                <x:v>_x0019_</x:v>
            </x:c>
        </x:row>
        <x:row r="28">
            <x:c r="A28" t="str">
                <x:v>_x001A_</x:v>
            </x:c>
        </x:row>
        <x:row r="29">
            <x:c r="A29" t="str">
                <x:v>_x001B_</x:v>
            </x:c>
        </x:row>
        <x:row r="30">
            <x:c r="A30" t="str">
                <x:v>_x001C_</x:v>
            </x:c>
        </x:row>
        <x:row r="31">
            <x:c r="A31" t="str">
                <x:v>_x001D_</x:v>
            </x:c>
        </x:row>
        <x:row r="32">
            <x:c r="A32" t="str">
                <x:v>_x001E_</x:v>
            </x:c>
        </x:row>
        <x:row r="33">
            <x:c r="A33" t="str">
                <x:v>_x001F_</x:v>
            </x:c>
        </x:row>
        <x:row r="34">
            <x:c r="A34" t="str">
                <x:v>�</x:v>
            </x:c>
        </x:row>
    </x:sheetData>
</x:worksheet>

image

@shps951023
Copy link
Member Author

shps951023 commented Apr 6, 2021

MiniExcel Query

image

<?xml version="1.0" encoding="utf-8"?>
<x:worksheet
    xmlns:x="http://schemas.openxmlformats.org/spreadsheetml/2006/main">
    <dimension ref="A34"/>
    <x:sheetData>
        <x:row r="1">
            <x:c r="A1" t="str">
                <x:v>Test</x:v>
            </x:c>
        </x:row>
        <x:row r="2">
            <x:c r="A2" t="str">
                <x:v>_x0000_</x:v>
            </x:c>
        </x:row>
        <x:row r="3">
            <x:c r="A3" t="str">
                <x:v>_x0001_</x:v>
            </x:c>
        </x:row>
        <x:row r="4">
            <x:c r="A4" t="str">
                <x:v>_x0002_</x:v>
            </x:c>
        </x:row>
        <x:row r="5">
            <x:c r="A5" t="str">
                <x:v>_x0003_</x:v>
            </x:c>
        </x:row>
        <x:row r="6">
            <x:c r="A6" t="str">
                <x:v>_x0004_</x:v>
            </x:c>
        </x:row>
        <x:row r="7">
            <x:c r="A7" t="str">
                <x:v>_x0005_</x:v>
            </x:c>
        </x:row>
        <x:row r="8">
            <x:c r="A8" t="str">
                <x:v>_x0006_</x:v>
            </x:c>
        </x:row>
        <x:row r="9">
            <x:c r="A9" t="str">
                <x:v>_x0007_</x:v>
            </x:c>
        </x:row>
        <x:row r="10">
            <x:c r="A10" t="str">
                <x:v>_x0008_</x:v>
            </x:c>
        </x:row>
        <x:row r="11">
            <x:c r="A11" t="str">
                <x:v></x:v>
            </x:c>
        </x:row>
        <x:row r="12">
            <x:c r="A12" t="str">
                <x:v></x:v>
            </x:c>
        </x:row>
        <x:row r="13">
            <x:c r="A13" t="str">
                <x:v>_x000B_</x:v>
            </x:c>
        </x:row>
        <x:row r="14">
            <x:c r="A14" t="str">
                <x:v>_x000C_</x:v>
            </x:c>
        </x:row>
        <x:row r="15">
            <x:c r="A15" t="str">
                <x:v></x:v>
            </x:c>
        </x:row>
        <x:row r="16">
            <x:c r="A16" t="str">
                <x:v>_x000E_</x:v>
            </x:c>
        </x:row>
        <x:row r="17">
            <x:c r="A17" t="str">
                <x:v>_x000F_</x:v>
            </x:c>
        </x:row>
        <x:row r="18">
            <x:c r="A18" t="str">
                <x:v>_x0010_</x:v>
            </x:c>
        </x:row>
        <x:row r="19">
            <x:c r="A19" t="str">
                <x:v>_x0011_</x:v>
            </x:c>
        </x:row>
        <x:row r="20">
            <x:c r="A20" t="str">
                <x:v>_x0012_</x:v>
            </x:c>
        </x:row>
        <x:row r="21">
            <x:c r="A21" t="str">
                <x:v>_x0013_</x:v>
            </x:c>
        </x:row>
        <x:row r="22">
            <x:c r="A22" t="str">
                <x:v>_x0014_</x:v>
            </x:c>
        </x:row>
        <x:row r="23">
            <x:c r="A23" t="str">
                <x:v>_x0015_</x:v>
            </x:c>
        </x:row>
        <x:row r="24">
            <x:c r="A24" t="str">
                <x:v>_x0016_</x:v>
            </x:c>
        </x:row>
        <x:row r="25">
            <x:c r="A25" t="str">
                <x:v>_x0017_</x:v>
            </x:c>
        </x:row>
        <x:row r="26">
            <x:c r="A26" t="str">
                <x:v>_x0018_</x:v>
            </x:c>
        </x:row>
        <x:row r="27">
            <x:c r="A27" t="str">
                <x:v>_x0019_</x:v>
            </x:c>
        </x:row>
        <x:row r="28">
            <x:c r="A28" t="str">
                <x:v>_x001A_</x:v>
            </x:c>
        </x:row>
        <x:row r="29">
            <x:c r="A29" t="str">
                <x:v>_x001B_</x:v>
            </x:c>
        </x:row>
        <x:row r="30">
            <x:c r="A30" t="str">
                <x:v>_x001C_</x:v>
            </x:c>
        </x:row>
        <x:row r="31">
            <x:c r="A31" t="str">
                <x:v>_x001D_</x:v>
            </x:c>
        </x:row>
        <x:row r="32">
            <x:c r="A32" t="str">
                <x:v>_x001E_</x:v>
            </x:c>
        </x:row>
        <x:row r="33">
            <x:c r="A33" t="str">
                <x:v>_x001F_</x:v>
            </x:c>
        </x:row>
        <x:row r="34">
            <x:c r="A34" t="str">
                <x:v>�</x:v>
            </x:c>
        </x:row>
    </x:sheetData>
</x:worksheet>

ExcelDataReader Read :

| String:Test |
| String:00 |
| String:01 |
| String:02 |
| String:03 |
| String:04 |
| String:05 |
| String:06 |
| String:07 |
| String:08 |
| String:   |
| String:
 |
| String:0B |
| String:0C |
| String:
 |
| String:0E |
| String:0F |
| String:10 |
| String:11 |
| String:12 |
| String:13 |
| String:14 |
| String:15 |
| String:16 |
| String:17 |
| String:18 |
| String:19 |
| String:1A |
| String:1B |
| String:1C |
| String:1D |
| String:1E |
| String:1F |
| String:� |

MiniExcel v0.10.2

| String:Test |
| String:00 |
| String:01 |
| String:02 |
| String:03 |
| String:04 |
| String:05 |
| String:06 |
| String:07 |
| String:08 |
| : |
| : |
| String:0B |
| String:0C |
| : |
| String:0E |
| String:0F |
| String:10 |
| String:11 |
| String:12 |
| String:13 |
| String:14 |
| String:15 |
| String:16 |
| String:17 |
| String:18 |
| String:19 |
| String:1A |
| String:1B |
| String:1C |
| String:1D |
| String:1E |
| String:1F |
| String:|

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

1 participant