Skip to content

fix FB_unicode #37

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

Merged
merged 1 commit into from
Apr 12, 2023
Merged

fix FB_unicode #37

merged 1 commit into from
Apr 12, 2023

Conversation

macrosoft
Copy link

FB_unicode неправильно декодирует последовательности символов, когда после русской буквы идёт цифра. Например "Реле1" декодируется в "Рел䍑1".
Вот в чем причина:
Реле1 в unicode escape это \u0420\u0435\u043b\u04351
strtol - обрабатывая 4-й символ, воспринимает его как 04351, а должна должна как 0435

@GyverLibs
Copy link
Owner

протестировано, всё работает во всех случаях?

@macrosoft
Copy link
Author

Протестировал в своём проекте. Думаю, должно работать.

@GyverLibs
Copy link
Owner

Огонь, спасибо огромное!

@GyverLibs GyverLibs merged commit 3179280 into GyverLibs:main Apr 12, 2023
@macrosoft
Copy link
Author

Тебе спасибо за видео и за библиотеки!

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.

2 participants