Skip to content

feat: add GBK charset decoding support for callback notifications#248

Open
tc6-01 wants to merge 1 commit into
smartwalle:masterfrom
tc6-01:feat/gbk-charset-decode
Open

feat: add GBK charset decoding support for callback notifications#248
tc6-01 wants to merge 1 commit into
smartwalle:masterfrom
tc6-01:feat/gbk-charset-decode

Conversation

@tc6-01

@tc6-01 tc6-01 commented Jan 15, 2026

Copy link
Copy Markdown

Add GetTradeNotificationWithCharset and DecodeNotificationWithCharset methods to automatically decode GBK-encoded fields (Subject, Body, BuyerLogonId, PassbackParams, RefundReason) to UTF-8 after signature verification.

The charset is extracted from the Content-Type header to determine if GBK decoding is needed.

Here are some talk with alipay
image
image

Add GetTradeNotificationWithCharset and DecodeNotificationWithCharset methods
to automatically decode GBK-encoded fields (Subject, Body, BuyerLogonId,
PassbackParams, RefundReason) to UTF-8 after signature verification.

The charset is extracted from the Content-Type header to determine if
GBK decoding is needed.
@tc6-01

tc6-01 commented Jan 15, 2026

Copy link
Copy Markdown
Author

@smartwalle hi 大佬,有一个回调时的隐藏 bug,这个看看能不能集成下

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.

1 participant