nanogui: Japanese Conversion(Shift JIS to UTF 8)
Subject:
Re: [nanogui] Japanese Conversion(Shift JIS to UTF 8)
From:
"Greg Haerr" ####@####.####
Date:
13 Nov 2007 01:08:35 +0000
Message-Id: <015c01c82591$a04b6380$6401a8c0@winXP>
> The problem is that the given Japanese text in the text file is in Shift
> JIS format. How do I convert this to UTF 8 format?
There is a function within Microwindows that is used by the font
subsystem for converting between input formats. Take a look
at engine/devfont.c::GdConvertEncoding(), this should do what
you want. You'll likely have to copy this out of that file into some
user code of your own, since its normally only linked with the server.
Regards,
Greg