Hi. First, what are your OS and compiler/IDE?
> I need to display the hindi word "हिà¤à¤¦à¥" in a Fl_Box label. That
> hindi word gets altered while displaying.
> Fl_Double_Window* make_window() {
> Fl_Double_Window* w;
> {
> Fl_Double_Window* o = new Fl_Double_Window(500, 500);
> w = o;
> {
> Fl_Box *box = new Fl_Box(25, 25, 400, 400, "हिà¤à¤¦à¥");
I think your problem is here ^
Many compilers don't like such UTF8 strings in text of program.
Try to use instead wide char string and convert it to UTF8 via some system
calls or via fl_utf8fromwc().
Simple example:
#include "FL/fl_utf8.h"
..
char dst[32];
fl_utf8fromwc(dst, 32, L"हिà¤à¤¦à¥", length_of_src);
Fl_Box *box = new Fl_Box(25, 25, 400, 400, dst);
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk