Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

UTF-8 to Shift_JIS in C

Name: Anonymous 2010-09-01 19:33

Hello /prog/,

Since most of you are EXPERT C-PROGRAMMERS I thought some of you might have an idea as how to best implement this.
In short, I need to convert (wchar_t) UTF-8 input to Shift_JIS, but I am a very incompetent C programmer.

My current implementation is to convert the entire map located here: http://unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/JIS/SHIFTJIS.TXT to a huge string on the form ("u%s%s", unicode, sjiscode) and then searching for the hexform of the unicode input.
This is obviously very slow and I ask of you if you could be so kind as to tell me how one is supposed to go about doing this sort of thing in C, as I currently am in a learning process.

Thank you for your attention.

Name: Anonymous 2010-09-01 21:05

>>5

Well thank you, that is exactly what I was attempting to implement. I'm currently trying to learn C and I reckoned this would be a good project to do, the goal would be to make a dictionary tripper.
Equipped with this excellent specimen of XARNcode I shall continue my learning process.

Thank you /prog/olytes!

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List