You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The marshaling uses some form of string escaping (via strconv.Quote), which does not preserve the underlying UTF-8 representation.
This causes signature verification to fail in nbd-wtf/go-nostr#28 (an incompatibility with clients written in other languages).
Is it possible to add an option to disable string escaping? This option is present in the standard encoding/json package, see https://pkg.go.dev/encoding/json#Marshal, SetEscapeHTML.
The marshaling uses some form of string escaping (via
strconv.Quote
), which does not preserve the underlying UTF-8 representation.This causes signature verification to fail in nbd-wtf/go-nostr#28 (an incompatibility with clients written in other languages).
Is it possible to add an option to disable string escaping? This option is present in the standard
encoding/json
package, see https://pkg.go.dev/encoding/json#Marshal,SetEscapeHTML
.Minimal working example:
returns:
The text was updated successfully, but these errors were encountered: