user41758
user41758

Reputation: 343

Japanese letters keep showing up?

I am getting some return text and its all in Japanese text. Is there a setting somewhere that would do this?

For example

Procedure form1.rec...
Var
   ReCBuf:array[0..9999] of char;
begin
 button1.enabled := true;

If I stop it right there, and look at the array it is full of Japanese characters.

Upvotes: 0

Views: 96

Answers (1)

David Heffernan
David Heffernan

Reputation: 612884

Local variables are not initialized by default. Your array contains arbitrary content. You must initialize ReCBuf before reading from it.

Upvotes: 2

Related Questions