Ooops
October 24, 2021, 11:04:14

Author Topic: Converting a text from a string variable to UTF-8  (Read 284 times)

Offline takis76

  • Full Member
  • ***
  • Posts: 113
Converting a text from a string variable to UTF-8
« on: September 21, 2021, 19:01:03 »
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. :)

Offline takis76

  • Full Member
  • ***
  • Posts: 113
Re: Converting a text from a string variable to UTF-8
« Reply #1 on: September 22, 2021, 00:01:07 »
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.

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal