can get_string_from_utf8() work with other language?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By skip1237890

var keytyped = PoolByteArray([typedevent.unicode]).getstringfrom_utf8()

code above is working fine with english language
but its dont work with Thai language

if i typed [A] its will recognize as [A]
but if i typed [ร] (locate at [I] key) its will recognize as [#] instead of [ร]

is it a way to make it work?

Godot version v3.5.1.stable.official [6fed1ffa3]

When you say “it doesn’t work”, what do you mean?

  • Are you getting an error? If so, what is the error?
  • Are you not getting the results you expect? If so, what do you expect and what do you get?
  • Something else entirely?

Also, is it possible the problem is elsewhere in your code? Maybe post the relevant code?

jgodfrey | 2022-12-12 19:38