Skip to main content
Participant
September 30, 2014
Question

Help F_ApiEnableUnicode(True) returns -1.

  • September 30, 2014
  • 1 reply
  • 498 views

With FM 12 and fdk 12 the F_ApiEnableUnicode(True)  returns -1. Help me pls.

This topic has been closed for replies.

1 reply

Legend
September 30, 2014

The FDK documentation shows this function as returning nothing (VoidT), so a -1 (or anything) seems fine to me. Is there a particular reason you think you should get a different return? Do you suspect the function is not working?

Russ

f_galloAuthor
Participant
September 30, 2014

The function is not working, with FM 10 I haven't this kind of problem. I tested the following code as described in fdkprogrammerguide.pdf and the result is incorrect, it displayed  the same characters both with Unicode disabled / enabled

F_ApiEnableUnicode(False);

F_ApiAlert("This is Unicode: \xC3\xA4 \xEB\xAE\xA4 \xD8\xB4",FF_ALERT_CONTINUE_NOTE);

F_ApiEnableUnicode(True);

F_ApiAlert("This is Unicode: \xC3\xA4 \xEB\xAE\xA4 \xD8\xB4",FF_ALERT_CONTINUE_NOTE);

Jeff_Coatsworth
Community Expert
Community Expert
September 30, 2014

@Arnis – this needs moving to the Scripting forum