-
像这样,有些论坛的用户名必须以GBK编码提交,这就需要编码,像这样 username={{urlencode("{{username}}",encoding="GBK")}} |
Beta Was this translation helpful? Give feedback.
Answered by
a76yyyy
Apr 23, 2024
Replies: 3 comments 1 reply
-
或者嵌套本来就错误的,应该采用{{username|urlencode}},但是默认是用utf-8编码,这个形式怎么指定encoding="gbk"呢? |
Beta Was this translation helpful? Give feedback.
0 replies
-
{{ username | urlencode(encoding="GBK") }} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
6Byte
-
谢谢,这个方法可行! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
{{ username | urlencode(encoding="GBK") }}