Sergio M
|
60249e0bc2
|
fix: Page.setContent working with unicode strings (#4433)
Fix `page.setContent` with unicode strings that exceeds the range of a 8-bit byte.
This patch implements decoding part of the [MDN's solution #4 for the "unicode problem"](https://developer.mozilla.org/en-US/docs/Web/API/WindowBase64/Base64_encoding_and_decoding#Solution_4_%E2%80%93_escaping_the_string_before_encoding_it).
Since we rely on node.js buffer to encode into base64, we don't have troubles with base64 encoding, so it is left as-is.
Fixes #4424
|
2019-05-18 17:15:16 +03:00 |
|