Skip to content

Fix encoding issues during manual session upload by utilizing EncodingUtils#269

Merged
fabieu merged 2 commits intomainfrom
fix-encoding-during-manual-session-upload
Nov 20, 2025
Merged

Fix encoding issues during manual session upload by utilizing EncodingUtils#269
fabieu merged 2 commits intomainfrom
fix-encoding-during-manual-session-upload

Conversation

@fabieu
Copy link
Owner

@fabieu fabieu commented Nov 20, 2025

No description provided.

@fabieu fabieu self-assigned this Nov 20, 2025
@fabieu fabieu added the bug Something isn't working label Nov 20, 2025
@fabieu fabieu requested a review from Copilot November 20, 2025 17:12
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the SessionFileService to use a centralized EncodingUtils utility class for handling character encoding during manual session file uploads. This eliminates duplicate encoding logic and improves maintainability by consolidating BOM handling, control character removal, and multi-charset detection into a shared utility.

  • Replaced custom readFile(), removeBOM(), and removeControlCharacters() methods with EncodingUtils.bytesToString()
  • Removed the IOException import as it's no longer explicitly referenced in this file
  • Simplified the file reading logic from multiple methods to a single utility call

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@fabieu fabieu merged commit 5d9c641 into main Nov 20, 2025
1 check passed
@fabieu fabieu deleted the fix-encoding-during-manual-session-upload branch November 20, 2025 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants