How to prevent Safari from implicitly converting character in XHR request?

时光毁灭记忆、已成空白 提交于 2020-12-15 05:25:31

问题


I picked this character as a separator for my combo-key-field for my DynamoDb database.

That character surfaces in the browser as part of a next-page-query token. (in an endless scroll list view)

Chrome properly sends that character to the backend (as part of the next-page-query token).

However, Safari, sends that character as this character: , which is different, and as a result, my backend is unable to recognise it.

Why is the browser changing the character? Is this behaviour expected? Did I miss declaring a char-set somewhere?

Probably an important finding is that running '〉' === '〉' returns true in Safari.

wAt?

来源:https://stackoverflow.com/questions/65167158/how-to-prevent-safari-from-implicitly-converting-character-in-xhr-request

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!