ongdisheng commented on issue #696:
URL: https://github.com/apache/fesod/issues/696#issuecomment-3554772000

   ## Reproduction Steps
   
   I created a test case to reproduce this issue:
   ```java
   public class ControlCharacterReproduceTest {
   
       @Test
       public void reproduceIssue696() {
           // Write data with control character \u0002
           List<DemoData> writeData = new ArrayList<>();
           DemoData data = new DemoData();
           data.setString("Product\u0002Code");
           data.setDate(new Date());
           data.setDoubleData(123.45);
           writeData.add(data);
   
           File file = new File("issue696_reproduce.xlsx");
           FesodSheet.write(file, 
DemoData.class).sheet("Sheet1").doWrite(writeData);
   
           // Read back
           List<DemoData> readData = new ArrayList<>();
           FesodSheet.read(file, DemoData.class, new 
AnalysisEventListener<DemoData>() {
               @Override
               public void invoke(DemoData data, AnalysisContext context) {
                   readData.add(data);
               }
   
               @Override
               public void doAfterAllAnalysed(AnalysisContext context) {
               }
           }).sheet().doRead();
   
           String original = writeData.get(0).getString();
           String result = readData.get(0).getString();
   
           System.out.println("Original: " + original);
           System.out.println("Result:   " + result);
       }
   }
   
   ```
   
   ## Result
   
   
[issue696_reproduce.xlsx](https://github.com/user-attachments/files/23638023/issue696_reproduce.xlsx)
   
   ```bash
   [INFO] -------------------------------------------------------
   [INFO]  T E S T S
   [INFO] -------------------------------------------------------
   [INFO] Running 
org.apache.fesod.sheet.demo.write.ControlCharacterReproduceTest
   Original: ProductCode
   Result:   Product?Code
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to