nanogui: Thread: Japanese Conversion(Shift JIS to UTF 8)


[<<] [<] Page 1 of 1 [>] [>>]
Subject: Japanese Conversion(Shift JIS to UTF 8)
From: "Prashanth Dwarakanath" ####@####.####
Date: 2 Nov 2007 06:07:14 +0000
Message-Id: <20071102060526.13062.qmail@webmail69.rediffmail.com>

  
Hi All,

I am trying to find out a way to convert a given Japanese string (In Shift JIS format) to UTF 8 format. The said Japanese string is
places in a text file which I have to read & convert into UTF 8 format for displaying on the TV using the frame buffer.

Could anybody tell me how to do this conversion?(I searched the internet but failed to get there)  Or if anybody has already done this... could they share the code sample with us please... Or any direction would also be helpful.

We have already configured nano-X for displaying Japaneses in UFT 8 format using freetype libraries and are able to display Japaneses text with GR_TFUTF8 flag in GrText API with the use of ipam.ttf & ipgui.ttf.

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?

We are using a bf -561 with uClinux on it.

Please let me know if I am missing something.

Thank You,

Prashanth.D
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

[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.