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
I've spent a few hours trying to figure this out, but it looks like it is not possible for an argument (/insert) on a call to i18n.T to contain a percent character.
Hi @nicksnyder - thanks for the quick response.
Apologies - this was user error. The difference between your test and mine was that yours wrote the output with Println(), while I used Printf() without a format. The returned string from the translate func was correct - but it got mangled by my misuse of Printf.
I've spent a few hours trying to figure this out, but it looks like it is not possible for an argument (/insert) on a call to i18n.T to contain a percent character.
anonymized code:
Output (with preceding message text removed):
I've tried substituting % with %25 , url escaping , passing in as byte slice rather than string.
But it looks like a percent anywhere within a value (of the args template data) gets garbled.
The text was updated successfully, but these errors were encountered: