(gdb)set charset charset
Set the current host and target character sets to charset. As above, if you type set charset TABTAB, GDB will list the names of the character sets that can be used for both host and target.
what's ur current charset in gdb?
(gdb)show target-charset
To display the list of supported target character sets, type
(gdb)set target-charset TABTAB.