Quote: "The site you're referring to does not solve the problem."
It doesn't?
After reading both links posted by pcRaider, I can see how it works, even though I don't know any Japanese.
Your code WON'T work, because the characters you typed are UNICODE (UTF8 most probably), which is not the same as Shift-JIS. The method is slightly similar to UFT8, but the mappings are completely different.
Here's how it goes:
The majority of the letters from 0x20 to 0x7f are pretty much mapped to ASCII (two exceptions by the looks of it) (1 byte = 1 character).
The byte values from 0xA1 to 0xDF are a straight mapping to Japanese characters (1 byte = 1 character).
The byte values 0x81 to 0x9F and 0xE0 to 0xEF are used to start an extended character and are combined with the value of the second byte to generate a single character (
2 bytes = 1 character).
For example, the following code displays 'a little man in a box' - 因 (apologies to the Japanese!):
set text font "fixed sys", 128
print chr$(136) + chr$(246)
wait key
You can find mappings here, which came from one of those wikipedia pages.
136 is 0x88, and 246 is 0xF8 - look for the character in that table.