Converting a text from a string variable to UTF-8

Started by takis76, September 21, 2021, 19:01:03

Previous topic - Next topic

takis76

Hello,
I would like to ask how is it possible to have one string variable that has a text which was written in a foreign language (For example using a greek font).
And if I will copy this text to clipboard from my program outside to some text editor the letters did not appear correctly I see them with different codepage.
Is it possible to convert this text to UTF-8

Thank you very much. :)

takis76

Well,
Finding this clipboard mod
https://github.com/maxmods/bah.mod/tree/master/clipboard.mod

Practically I solved my problem and It worked by copying a foreign language string text to the clipboard without changing the encoding of the text even tried to copy some text from an external word editor to my program or copying some text from inside my program to an external word editor too.

Of course, if you have some solution I will be happy to see an example for educational purposes.