Skip to content

Conversation

@tkamiya22
Copy link

@tkamiya22 tkamiya22 commented Apr 23, 2025

Fixed an issue in Encoder.is_valid_characters.
The newline character (\n) was incorrectly handled in both NumericEncoder and AlphanumericEncoder. (fix #58)
The condition in the if statement of KanjiEncoder was always True. (It seems this did not cause any problems as it was blocked by a UnicodeEncodeError.)

@tkamiya22 tkamiya22 changed the title fix #58 fix wrong Encoder methods Apr 23, 2025
@tkamiya22 tkamiya22 changed the title fix wrong Encoder methods fix wrong encoder methods Apr 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Newline (\n) breaks encoding in some cases

1 participant