diff --git a/src/protocols/rdp/unicode.c b/src/protocols/rdp/unicode.c index 2d628ee6..0e7b6015 100644 --- a/src/protocols/rdp/unicode.c +++ b/src/protocols/rdp/unicode.c @@ -60,3 +60,22 @@ void guac_rdp_utf16_to_utf8(const unsigned char* utf16, char* utf8, int length) } +void guac_rdp_utf8_to_utf16(const unsigned char* utf8, char* utf16, int length) { + + int i; + uint16_t* out_codepoint = (uint16_t*) utf16; + + /* For each UTF-8 character */ + for (i=0; i