Skip to content

Conversation

@fcecagno
Copy link

@fcecagno fcecagno commented Nov 11, 2024

Resolve conflicts of #240
Fix #227
Fix #239
Fix #323


if p.threads {
for _, thr := range gcounts.Threads {
threadName := filterNonutf8Characters(thr.Name)
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
threadName := filterNonutf8Characters(thr.Name)
threadName := strings.ToValidUTF8(thr.Name, "\uFFFD")

I believe this is the "replacement character" that's commonly used for invalid utf-8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants