Convert an character to ASCII value?

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

Is there a way that I could convert an character for this equivalent ASCII value? for example, i have “A” and i want to return “65” that is the actual code for ASCII correspondent for “A”.

:bust_in_silhouette: Reply From: wyattb
a = ord("A") # a is 65

a = “A”.unicode_at(0) # godot 4.0 beta 1

play3577 | 2022-09-20 00:42