Fix multiple missing UTF-8 decoding.

(cherry picked from commit c69e0d16bc)
This commit is contained in:
bruvzg 2022-01-06 11:34:10 +02:00 committed by Rémi Verschelde
parent 9b149d5848
commit 6f81a8ee2c
No known key found for this signature in database
GPG key ID: C3336907360768E1
12 changed files with 17 additions and 17 deletions

View file

@ -659,7 +659,7 @@ const char *OS_JavaScript::get_audio_driver_name(int p_driver) const {
// Clipboard
void OS_JavaScript::update_clipboard_callback(const char *p_text) {
// Only call set_clipboard from OS (sets local clipboard)
get_singleton()->OS::set_clipboard(p_text);
get_singleton()->OS::set_clipboard(String::utf8(p_text));
}
void OS_JavaScript::set_clipboard(const String &p_text) {