Closed hackers267 closed 5 years ago
when the string includes Chinese ,throw error: TypeError: argument name is invalid
This is because header and cookie values can only contain a subset of us-ascii. You have to encode the value in some method and then use the same method to decode when you read back the value.
when the string includes Chinese ,throw error: TypeError: argument name is invalid