Okay, this has baffled me.
I am trying to write a script to search for multilingual domain names, and this requires that I read Chinese characters input into a browser. Micro$oft tends to encode these using NUMBER where NUMBER. is the unicode number of the chinese character.
I know how to convert this from Unicode to GB encoding (it involves a very large hash) but I don't know how to encode the resulting number into a GB string. E.g., if I have some hex GB numbers (0x77FE 0x44DF etc.) how do I convert these into a GB string (using GB2312-80) to send over the internet ?
btw: apologies for the ugly formatting. I am viewing in Konqueror which for some reason prints the TEXTAREA as a very narrow strip.