Skip to content

bug: fix to corrupted utf-8 encoding for special characters in transcription#652

Merged
mkopcins merged 2 commits intomainfrom
@mkopcins/s2t-special-char-fix
Oct 17, 2025
Merged

bug: fix to corrupted utf-8 encoding for special characters in transcription#652
mkopcins merged 2 commits intomainfrom
@mkopcins/s2t-special-char-fix

Conversation

@mkopcins
Copy link
Copy Markdown
Collaborator

Description

Fix for issue #651. The problem was the serialization of cpp string into jsi::Value and then back to a string, causing invalid characters and bytes. Now cpp returns array of bytes and the decoding is done on the JS side.

Introduces a breaking change?

  • Yes
  • No

Type of change

  • Bug fix (change which fixes an issue)
  • New feature (change which adds functionality)
  • Documentation update (improves or adds clarity to existing documentation)
  • Other (chores, tests, code style improvements etc.)

Tested on

  • iOS
  • Android

Testing instructions

Screenshots

Related issues

Checklist

  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly
  • My changes generate no new warnings

Additional notes

Copy link
Copy Markdown
Member

@msluszniak msluszniak left a comment

Choose a reason for hiding this comment

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

JS code is not formatted, also two NITs above, and I think it will be ready to ship it

@msluszniak msluszniak added the bug fix PRs that are fixing bugs label Oct 17, 2025
@mkopcins mkopcins force-pushed the @mkopcins/s2t-special-char-fix branch 3 times, most recently from 9712cd1 to 46f436a Compare October 17, 2025 13:49
Copy link
Copy Markdown
Member

@msluszniak msluszniak left a comment

Choose a reason for hiding this comment

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

🚀

@mkopcins mkopcins force-pushed the @mkopcins/s2t-special-char-fix branch from 46f436a to 5c5d168 Compare October 17, 2025 13:52
@mkopcins mkopcins merged commit f9fcb04 into main Oct 17, 2025
4 checks passed
@mkopcins mkopcins deleted the @mkopcins/s2t-special-char-fix branch October 17, 2025 13:54
mkopcins added a commit that referenced this pull request Oct 17, 2025
…ription (#652)

## Description

Fix for issue #651. The problem was the serialization of cpp string into
jsi::Value and then back to a string, causing invalid characters and
bytes. Now cpp returns array of bytes and the decoding is done on the JS
side.

### Introduces a breaking change?

- [ ] Yes
- [x] No

### Type of change

- [x] Bug fix (change which fixes an issue)
- [ ] New feature (change which adds functionality)
- [ ] Documentation update (improves or adds clarity to existing
documentation)
- [ ] Other (chores, tests, code style improvements etc.)

### Tested on

- [x] iOS
- [x] Android

### Testing instructions

<!-- Provide step-by-step instructions on how to test your changes.
Include setup details if necessary. -->

### Screenshots

<!-- Add screenshots here, if applicable -->

### Related issues

<!-- Link related issues here using #issue-number -->

### Checklist

- [ ] I have performed a self-review of my code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have updated the documentation accordingly
- [ ] My changes generate no new warnings

### Additional notes

<!-- Include any additional information, assumptions, or context that
reviewers might need to understand this PR. -->

---------

Co-authored-by: Mateusz Kopciński <mateusz.kopcinski@swmansnion.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug fix PRs that are fixing bugs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants