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

Visual Studio 2005 on Japanese

Name: Anonymous 2010-02-27 6:24

Does anyone know how I can express inputted japanese character-numbers, (1234567890) as normal integer values (1234567890)

if im writing an application for a japanese user and they enter on the form in a textbox "7", in the japanese font, how can i convert this as intger 7?

if i get the textbox.text value, it doesnt convert to an intger, even the char datatype doesnt like it.

Name: Anonymous 2010-02-27 9:26

Is the input done in Unicode form or SJIS? Just use whatever API is appropriate to convert to Unicode if it's SJIS and then write your own atoi routine which supports Japanese 0-9 characters, it should be rather easy (get the charcode of 0, and handle it like you would with normal ASCII characters, except sizeof(wchar_t) is 2, not 1).

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